summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPravin Dalve2021-06-22 00:44:13 +0530
committerPravin Dalve2021-06-22 00:44:13 +0530
commitb590064106ff19d990beb824dabd653eb473d378 (patch)
tree52d0a29c4b0b119d4441c6bb1010c2b0b7e601a5
parentce501c2d9e437e3988105595d2e9068045a98720 (diff)
downloadChemical-Simulator-GUI-b590064106ff19d990beb824dabd653eb473d378.tar.gz
Chemical-Simulator-GUI-b590064106ff19d990beb824dabd653eb473d378.tar.bz2
Chemical-Simulator-GUI-b590064106ff19d990beb824dabd653eb473d378.zip
update compounds method added in shorcut column dockwidget
-rw-r--r--DockWidgets/DockWidgetShortcutColumn.py9
-rw-r--r--DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pycbin4593 -> 4976 bytes
-rw-r--r--Undo.datbin10847 -> 10820 bytes
3 files changed, 9 insertions, 0 deletions
diff --git a/DockWidgets/DockWidgetShortcutColumn.py b/DockWidgets/DockWidgetShortcutColumn.py
index 96069e5..a6fe33d 100644
--- a/DockWidgets/DockWidgetShortcutColumn.py
+++ b/DockWidgets/DockWidgetShortcutColumn.py
@@ -70,6 +70,15 @@ class DockWidgetShortcutColumn(QDockWidget,ui_dialog):
except Exception as e:
print(e)
+
+ def update_compounds(self):
+ self.cb1.clear()
+ self.cb2.clear()
+ for i in self.obj.compounds:
+ self.cb1.addItem(str(i))
+ self.cb2.addItem(str(i))
+ self.cb1.setCurrentText(self.obj.compounds[int(self.obj.variables['HKey']['value']) - 1])
+ self.cb2.setCurrentText(self.obj.compounds[int(self.obj.variables['LKey']['value']) - 1])
def show_error(self):
QMessageBox.about(self, 'Important', "Please fill all fields with data")
diff --git a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
index f1b745e..d6c2197 100644
--- a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
Binary files differ
diff --git a/Undo.dat b/Undo.dat
index 9290ee5..e3cc693 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ