diff options
Diffstat (limited to 'DockWidgets/DockWidgetShortcutColumn.py')
-rw-r--r-- | DockWidgets/DockWidgetShortcutColumn.py | 9 |
1 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") |