graphics/FBD_Objects.py
changeset 873 8737f1554494
parent 857 9695969796d0
child 1054 ef514eaacd8c
equal deleted inserted replaced
872:6aadbde5f41e 873:8737f1554494
   664                     self.Output = Connector(self, "", value_type, wx.Point(0, 0), EAST)
   664                     self.Output = Connector(self, "", value_type, wx.Point(0, 0), EAST)
   665             elif self.Output:
   665             elif self.Output:
   666                 self.Output.UnConnect(delete = True)
   666                 self.Output.UnConnect(delete = True)
   667                 self.Output = None
   667                 self.Output = None
   668             self.RefreshConnectors()
   668             self.RefreshConnectors()
       
   669             self.RefreshBoundingBox()
   669         elif value_type != self.ValueType:
   670         elif value_type != self.ValueType:
   670             if self.Input:
   671             if self.Input:
   671                 self.Input.SetType(value_type)
   672                 self.Input.SetType(value_type)
   672             if self.Output:
   673             if self.Output:
   673                 self.Output.SetType(value_type)            
   674                 self.Output.SetType(value_type)            
   902             if self.Type == CONNECTOR:
   903             if self.Type == CONNECTOR:
   903                 self.Connector = Connector(self, "", "ANY", wx.Point(0, 0), WEST, onlyone = True)
   904                 self.Connector = Connector(self, "", "ANY", wx.Point(0, 0), WEST, onlyone = True)
   904             else:
   905             else:
   905                 self.Connector = Connector(self, "", "ANY", wx.Point(0, 0), EAST)
   906                 self.Connector = Connector(self, "", "ANY", wx.Point(0, 0), EAST)
   906             self.RefreshConnectors()
   907             self.RefreshConnectors()
       
   908             self.RefreshBoundingBox()
   907     
   909     
   908     # Returns the connection type
   910     # Returns the connection type
   909     def GetType(self):
   911     def GetType(self):
   910         return self.Type
   912         return self.Type
   911     
   913