def __init__(self, commandSequencer): # I don't know why this method is needed. ##### REVIEW (super semantics), FIX or clean up # (note: that comment predates commandSequencer != glpane; after that, it's needed # due to different init args) glpane = commandSequencer.assy.glpane super(test_connectWithState, self).__init__(glpane) # State_preMixin.__init__ ExampleCommand.__init__(self, commandSequencer) # (especially this part) return
def leftDown(self, event): print "leftDown" # TODO: # get the point (mouseray in plane) # make a real point there (or mark it as real, if we have a point object for it already) # (so it has a blue dot of its own) # update self.rubberBand_enabled # STUB: self.rubberBand_enabled = True self.lastSegmentEnd = self.lastSegmentStart + 3 * DX ExampleCommand.leftDown(self, event) ### will this prevent this error in mouse release: ## AttributeError: 'test_polyline_drag' object has no attribute 'LMB_press_event' ## [GLPane.py:1805] [selectAtomsMode.py:899] return
def __init__(self, glpane): # I don't know why this method is needed. ##### REVIEW (super semantics), FIX or clean up super(test_connectWithState, self).__init__(glpane) # State_preMixin.__init__ ExampleCommand.__init__(self, glpane) # (especially this part) return
def __init__(self, glpane): # not sure why this method is needed, see comment in test_connectWithState.__init__ super(test_polyline_drag, self).__init__(glpane) ExampleCommand.__init__(self, glpane) return