From 8f7f43867c3a3b7ef0257f1702337a6fdbf746f2 Mon Sep 17 00:00:00 2001 From: physics group account Date: Fri, 26 Jun 2020 20:53:40 -0700 Subject: [PATCH] Making my devPanel even better --- andy/MyFirstCode.py | 18 ++++++++ andy/MyFirstCode.pyc | Bin 0 -> 1199 bytes andy/MyFirstCode.py~ | 18 ++++++++ andy/devPanelAndy.ui | 107 +++++++++++++++++++------------------------ opsDevPanel.ui | 19 ++++---- 5 files changed, 92 insertions(+), 70 deletions(-) create mode 100644 andy/MyFirstCode.py create mode 100644 andy/MyFirstCode.pyc create mode 100644 andy/MyFirstCode.py~ diff --git a/andy/MyFirstCode.py b/andy/MyFirstCode.py new file mode 100644 index 0000000..d46784b --- /dev/null +++ b/andy/MyFirstCode.py @@ -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 + + diff --git a/andy/MyFirstCode.pyc b/andy/MyFirstCode.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d32038705d4c6d2405797e5914f928fb6e3b620f GIT binary patch literal 1199 zcmb_bO>fjN5FIDk7D}u31V@g9OLIWnD#W%xPpr0C1Y!?FQS9Ay$d_WLQl!1LKc)W= z32}pYPGH3q8hIw;aXjzMNBnO`2S4tzYx z?J`@pf6+PTBlDbQ`EH6P@ChJk| z;r5n8dbIVJz9;w~_bCr3pHRMs@A7@R8B$+_h&HoGs!3Z_Sqq%BU7PR$LIcQjjcQ{L zTlkVhSK20tg@@Bbgts3)xk_Y(&b}%+*mYH@%-TnMK9zFb*6UUo;}9K+QN=38?HHIL z%b?5)wxUg4s;JrYMrS5U)6Q&ETSih{&(lg3QCi79df&g(t+5xiRHscJBMXQ@JQ7bu zh8F!6S1+7!ffgai&&)BlW5_8-Jni(r1DE1MR{u}S6`<3}N*Ah1ONFs8fTtZlRKf9k z#s)gXOQ4xM+s7<2^(TK?=TgvM>V_l6C_1oaEcJQXx{euTKc+>eTsN;_xlz5R{9-it zh-FM_=6;cJRFE)_3UW@8vX)(eExItPE9E*C Form - - - - 10 - 220 - 621 - 25 - - - - - - - End The World!!! - - - - pydm ~/opsTools/devPanel/example/example.py - - - - - - - 19 - 446 - 601 - 25 - - - - 27 - - - QProgressBar::TopToBottom - - - - - true - - - - 10 - 400 - 621 - 27 - - - - QFrame::NoFrame - - - Progress of current "End The World!!!" process: - - - Qt::AlignBottom|Qt::AlignHCenter - - + + + + + true + + + + 16777215 + 400 + + + + QFrame::NoFrame + + + Progress of current "End The World!!!" process: + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + + + End The World!!! + + + + + + + 27 + + + QProgressBar::TopToBottom + + + + - PyDMShellCommand + PyDMPushButton QPushButton -
pydm.widgets.shell_command
+
pydm.widgets.pushbutton
diff --git a/opsDevPanel.ui b/opsDevPanel.ui index c37873b..bd88f63 100644 --- a/opsDevPanel.ui +++ b/opsDevPanel.ui @@ -14,32 +14,32 @@ Form - - + + - Example Dev Panel + Lisa's Dev Panel - example/example.py + lisa/devPanelLisa.ui - - + + - Lisa's Dev Panel + Example Dev Panel - lisa/devPanelLisa.ui + example/example.py @@ -54,7 +54,8 @@ - andy/devPanelAndy.ui + /home/physics/aausherm/devPanel/andy/MyFirstCode.py + xterm -T ETW