summaryrefslogtreecommitdiff
path: root/component_selector.py
diff options
context:
space:
mode:
Diffstat (limited to 'component_selector.py')
-rw-r--r--component_selector.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/component_selector.py b/component_selector.py
index 3be0f0f..03c0863 100644
--- a/component_selector.py
+++ b/component_selector.py
@@ -70,7 +70,7 @@ class componentSelector(QDialog,ui_dialog):
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
print(exc_type, fname, exc_tb.tb_lineno)
- def addCompToList(self,comp):
+ def addCompToList(self,comp): # which list?
self.item = QListWidgetItem()
self.item.setText(comp)
self.listWidget.addItem(self.item)
@@ -80,8 +80,10 @@ class componentSelector(QDialog,ui_dialog):
self.tableWidget.removeRow(self.tableWidget.currentRow())
compound_selected.remove(item)
+
def Show_Error(self):
QMessageBox.about(self, 'Important', "Selected Compound is not Available")
+
def cancel(self):
compound_selected.clear()
self.tableWidget.setRowCount(0)