graphics/SFC_Objects.py
changeset 1757 0de89da92ee0
parent 1754 63f4af6bf6d9
child 1758 845ca626db09
equal deleted inserted replaced
1756:08e4394ff4fb 1757:0de89da92ee0
   813 
   813 
   814     # Changes the transition type
   814     # Changes the transition type
   815     def SetType(self, type, condition=None):
   815     def SetType(self, type, condition=None):
   816         if self.Type != type:
   816         if self.Type != type:
   817             if self.Type == "connection":
   817             if self.Type == "connection":
   818                self.Condition.UnConnect(delete=self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
   818                 self.Condition.UnConnect(delete=self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
   819             self.Type = type
   819             self.Type = type
   820             if type == "connection":
   820             if type == "connection":
   821                 self.Condition = Connector(self, "", "BOOL", wx.Point(0, self.Size[1] / 2), WEST)
   821                 self.Condition = Connector(self, "", "BOOL", wx.Point(0, self.Size[1] / 2), WEST)
   822             else:
   822             else:
   823                 if condition is None:
   823                 if condition is None: