graphics/LD_Objects.py
changeset 1356 2d4cc768a1bc
parent 1258 441f31474b50
child 1571 486f94a8032c
equal deleted inserted replaced
1355:9183fb765f16 1356:2d4cc768a1bc
   772     def Delete(self):
   772     def Delete(self):
   773         self.Parent.DeleteCoil(self)
   773         self.Parent.DeleteCoil(self)
   774     
   774     
   775     # Unconnect input and output
   775     # Unconnect input and output
   776     def Clean(self):
   776     def Clean(self):
   777         self.Input.UnConnect()
   777         self.Input.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
   778         self.Output.UnConnect()
   778         self.Output.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
   779                 
   779                 
   780     # Refresh the size of text for name
   780     # Refresh the size of text for name
   781     def RefreshNameSize(self):
   781     def RefreshNameSize(self):
   782         if self.Name != "":
   782         if self.Name != "":
   783             self.NameSize = self.Parent.GetTextExtent(self.Name)
   783             self.NameSize = self.Parent.GetTextExtent(self.Name)