-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Open in Designer now also opens the PY file associated with the …
…screen. (#187) * ENH: Open in Designer now also opens the PY file associated with the screen. * ENH: Changing the Menu text accordingly for Open in Editor and Text Editor as suggested by @mgibbs. FIX: We cant use 'intelclass' as a generic name when loading files, this was causing problems with Open File. Changed to uuid.uuid4() * ENH: Adding better way to find the QT Binary location thanks to @mgibbs
- Loading branch information
1 parent
3525bdd
commit 9a3527e
Showing
5 changed files
with
117 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from pydm import Display | ||
from pydm.PyQt.QtGui import QLabel, QVBoxLayout, QHBoxLayout | ||
|
||
class MyDisplay(Display): | ||
def __init__(self, parent=None, args=[]): | ||
super(MyDisplay, self).__init__(parent=parent, args=args) | ||
self.setup_ui() | ||
|
||
def setup_ui(self): | ||
main = QHBoxLayout() | ||
sub = QVBoxLayout() | ||
for i in range(10): | ||
sub.addWidget(QLabel(str(i))) | ||
main.addLayout(sub) | ||
self.setLayout(main) | ||
|
||
def ui_filename(self): | ||
return None | ||
|
||
def ui_filepath(self): | ||
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.