graphics/FBD_Objects.py
changeset 1753 19f19c66b67e
parent 1744 69dfdb26f600
child 1761 8c98bad90b8d
equal deleted inserted replaced
1752:d14ff9d7eb76 1753:19f19c66b67e
   378         handle_type, handle = self.Handle
   378         handle_type, handle = self.Handle
   379         if handle_type == HANDLE_CONNECTOR:
   379         if handle_type == HANDLE_CONNECTOR:
   380             handle.SetEdge(edge)
   380             handle.SetEdge(edge)
   381             self.RefreshModel(False)
   381             self.RefreshModel(False)
   382 
   382 
   383 ##    # Method called when a Motion event have been generated
   383 #    # Method called when a Motion event have been generated
   384 ##    def OnMotion(self, event, dc, scaling):
   384 #    def OnMotion(self, event, dc, scaling):
   385 ##        if not event.Dragging():
   385 #        if not event.Dragging():
   386 ##            pos = event.GetLogicalPosition(dc)
   386 #            pos = event.GetLogicalPosition(dc)
   387 ##            for input in self.Inputs:
   387 #            for input in self.Inputs:
   388 ##                rect = input.GetRedrawRect()
   388 #                rect = input.GetRedrawRect()
   389 ##                if rect.InsideXY(pos.x, pos.y):
   389 #                if rect.InsideXY(pos.x, pos.y):
   390 ##                    print "Find input"
   390 #                    print "Find input"
   391 ##                    tip = wx.TipWindow(self.Parent, "Test")
   391 #                    tip = wx.TipWindow(self.Parent, "Test")
   392 ##                    tip.SetBoundingRect(rect)
   392 #                    tip.SetBoundingRect(rect)
   393 ##        return Graphic_Element.OnMotion(self, event, dc, scaling)
   393 #        return Graphic_Element.OnMotion(self, event, dc, scaling)
   394 
   394 
   395     # Method called when a LeftDClick event have been generated
   395     # Method called when a LeftDClick event have been generated
   396     def OnLeftDClick(self, event, dc, scaling):
   396     def OnLeftDClick(self, event, dc, scaling):
   397         # Edit the block properties
   397         # Edit the block properties
   398         self.Parent.EditBlockContent(self)
   398         self.Parent.EditBlockContent(self)