summaryrefslogtreecommitdiff
path: root/container.py
diff options
context:
space:
mode:
authorlucaszhao192020-05-10 21:22:21 +0630
committerlucaszhao192020-05-10 21:22:21 +0630
commitb15ef48ada9a8d80b0a6278483d46c0548996745 (patch)
tree7c37113180f6a963d0b4de91720f7db8b4d2d1bf /container.py
parent637df5484328008d597615cadb0d219ed7be0a0d (diff)
downloadChemical-Simulator-GUI-b15ef48ada9a8d80b0a6278483d46c0548996745.tar.gz
Chemical-Simulator-GUI-b15ef48ada9a8d80b0a6278483d46c0548996745.tar.bz2
Chemical-Simulator-GUI-b15ef48ada9a8d80b0a6278483d46c0548996745.zip
Fixed container.py issue
Diffstat (limited to 'container.py')
-rw-r--r--container.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/container.py b/container.py
index 14e3bf0..8030ebf 100644
--- a/container.py
+++ b/container.py
@@ -93,6 +93,7 @@ class Container():
'''
def delete(self,l):
for item in l:
+ print('deleted objects ', item)
self.scene.removeItem(item)
for i in dock_widget_lst:
if i.name == item.name:
@@ -102,22 +103,26 @@ class Container():
for i in dock_widget_lst:
print(i.name)
print("delete ", dock_widget_lst)
- if hasattr(item,'Input'):
+ if hasattr(item,'input'):
+ print("In input ")
+ print(item.input)
for x in item.input:
if x.new_line:
self.scene.removeItem(x.new_line)
del x.new_line
- if x.otherLine:
- self.scene.removeItem(x.otherLine)
- del x.otherLine
- if hasattr(item,'Output'):
+ if x.other_line:
+ self.scene.removeItem(x.other_line)
+ del x.other_line
+ if hasattr(item,'output'):
+ print("in output ")
+ print(item.output)
for x in item.output:
if x.new_line:
self.scene.removeItem(x.new_line)
del x.new_line
- if x.otherLine:
- self.scene.removeItem(x.otherLine)
- del x.otherLine
+ if x.other_line:
+ self.scene.removeItem(x.other_line)
+ del x.other_line
if hasattr(item,'obj'):
self.unit_operations.remove(item.obj)
for k in list(self.conn):