diff options
author | Sann Yay Aye | 2020-01-07 17:36:45 +0530 |
---|---|---|
committer | Sann Yay Aye | 2020-01-07 17:36:45 +0530 |
commit | 262be53fad86b22c8cd2f9c343990afdb6645b0e (patch) | |
tree | a0258e7c052b7e76a46da8b0149611ed5a013e06 /dockWidget.py | |
parent | 79c81eaa67a545db570c083c3852e09b26e5bf87 (diff) | |
download | Chemical-Simulator-GUI-262be53fad86b22c8cd2f9c343990afdb6645b0e.tar.gz Chemical-Simulator-GUI-262be53fad86b22c8cd2f9c343990afdb6645b0e.tar.bz2 Chemical-Simulator-GUI-262be53fad86b22c8cd2f9c343990afdb6645b0e.zip |
Changed CSS color and set Tooltips and default value on dockWidget
Diffstat (limited to 'dockWidget.py')
-rw-r--r-- | dockWidget.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dockWidget.py b/dockWidget.py index c2f6542..9bc9052 100644 --- a/dockWidget.py +++ b/dockWidget.py @@ -10,7 +10,7 @@ ui_dialog,_ = loadUiType('dockWidget.ui') class dockWidget(QDockWidget,ui_dialog): - + def __init__(self,name,comptype,obj,parent=None): QDockWidget.__init__(self,parent) self.setupUi(self) @@ -78,8 +78,8 @@ class dockWidget(QDockWidget,ui_dialog): else: print("elseloop") l = QLineEdit() - # if i.Pdel is not None: - # l.setText(i.Pdel) + if self.inputdict[i] != None: + l.setText(str(self.inputdict[i])) self.formLayout.addRow(QLabel(i+":"),l ) self.inputdict[i] = l |