Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions andy/MyFirstCode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from pydm import Display
from PyQt5 import QtGui

class Destructor(Display):

def __init__(self, parent=None, args=None):
super(Destructor, self).__init__(parent=parent, args=args)
self.ui.ETW.clicked.connect(self.AddProgress)

def ui_filename(self):
return 'devPanelAndy.ui'

def AddProgress(self):
self.ui.progressBar.setValue(self.ui.progressBar.value() + 1)

Armageddon = Destructor


Binary file added andy/MyFirstCode.pyc
Binary file not shown.
18 changes: 18 additions & 0 deletions andy/MyFirstCode.py~
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from pydm import Display
from PyQt5 import QtGui

class Destructor(Display):

def __init__(self, parent=None, args=None):
super(Destructor, self).__init__(parent=parent, args=args)
self.ui.ETW.clicked.connect(self.AddProgress)

def ui_filename(self):
return 'devPanelAndy.ui'

def AddProgress(self):
self.ui.progressBar.value() += 1

Armageddon = Destructor


107 changes: 46 additions & 61 deletions andy/devPanelAndy.ui
Original file line number Diff line number Diff line change
Expand Up @@ -13,71 +13,56 @@
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="PyDMShellCommand" name="EndTheWorld">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<width>621</width>
<height>25</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>End The World!!!</string>
</property>
<property name="commands" stdset="0">
<stringlist>
<string>pydm ~/opsTools/devPanel/example/example.py</string>
</stringlist>
</property>
</widget>
<widget class="QProgressBar" name="progressBar">
<property name="geometry">
<rect>
<x>19</x>
<y>446</y>
<width>601</width>
<height>25</height>
</rect>
</property>
<property name="value">
<number>27</number>
</property>
<property name="textDirection">
<enum>QProgressBar::TopToBottom</enum>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>400</y>
<width>621</width>
<height>27</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string>Progress of current &quot;End The World!!!&quot; process:</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignHCenter</set>
</property>
</widget>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="enabled">
<bool>true</bool>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>400</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string>Progress of current &quot;End The World!!!&quot; process:</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignHCenter</set>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="PyDMPushButton" name="ETW">
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>End The World!!!</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>27</number>
</property>
<property name="textDirection">
<enum>QProgressBar::TopToBottom</enum>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>PyDMShellCommand</class>
<class>PyDMPushButton</class>
<extends>QPushButton</extends>
<header>pydm.widgets.shell_command</header>
<header>pydm.widgets.pushbutton</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down
19 changes: 10 additions & 9 deletions opsDevPanel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="PyDMRelatedDisplayButton" name="devPanelExample">
<item row="0" column="0">
<widget class="PyDMRelatedDisplayButton" name="devPanelLisa">
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>Example Dev Panel</string>
<string>Lisa's Dev Panel</string>
</property>
<property name="filenames" stdset="0">
<stringlist>
<string>example/example.py</string>
<string>lisa/devPanelLisa.ui</string>
</stringlist>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="PyDMRelatedDisplayButton" name="devPanelLisa">
<item row="2" column="0">
<widget class="PyDMRelatedDisplayButton" name="devPanelExample">
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>Lisa's Dev Panel</string>
<string>Example Dev Panel</string>
</property>
<property name="filenames" stdset="0">
<stringlist>
<string>lisa/devPanelLisa.ui</string>
<string>example/example.py</string>
</stringlist>
</property>
</widget>
Expand All @@ -54,7 +54,8 @@
</property>
<property name="filenames" stdset="0">
<stringlist>
<string>andy/devPanelAndy.ui</string>
<string>/home/physics/aausherm/devPanel/andy/MyFirstCode.py</string>
<string>xterm -T ETW</string>
</stringlist>
</property>
</widget>
Expand Down