forked from slaclab/devPanel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request slaclab#1 from lisazacarias/master
First stab at formatting
- Loading branch information
Showing
3 changed files
with
73 additions
and
1 deletion.
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,15 @@ | ||
from pydm import Display | ||
from PyQt5 import QtGui | ||
|
||
class DevPanel(Display): | ||
|
||
def __init__(self, parent=None, args=None): | ||
super(DevPanel, self).__init__(parent=parent, args=args) | ||
|
||
def ui_filename(self): | ||
return 'devPanel.ui' | ||
|
||
def updatePower(self): | ||
button = self.ui.devPanelLisa | ||
|
||
intelclass = DevPanel |
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,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Form</class> | ||
<widget class="QWidget" name="Form"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>640</width> | ||
<height>480</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="1" column="0"> | ||
<widget class="PyDMShellCommand" name="PyDMShellCommand_2"> | ||
<property name="toolTip"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0"> | ||
<widget class="PyDMShellCommand" name="rtbsa"> | ||
<property name="toolTip"> | ||
<string/> | ||
</property> | ||
<property name="text"> | ||
<string>RTBSA</string> | ||
</property> | ||
<property name="commands" stdset="0"> | ||
<stringlist> | ||
<string>python ~/zacarias/rtbsa/rtbsa.py</string> | ||
</stringlist> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="0"> | ||
<widget class="PyDMShellCommand" name="PyDMShellCommand_3"> | ||
<property name="toolTip"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>PyDMShellCommand</class> | ||
<extends>QPushButton</extends> | ||
<header>pydm.widgets.shell_command</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |
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