graphics/LD_Objects.py
branch1.1 Korean release
changeset 1384 02fe382c4511
parent 1356 2d4cc768a1bc
child 1571 486f94a8032c
equal deleted inserted replaced
1280:72a826dfcfbb 1384:02fe382c4511
   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)