equal
deleted
inserted
replaced
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: |