def __init__(self, commandSequencer): glpane = commandSequencer.assy.glpane #bruce 080813 revised this basicCommand.__init__(self, commandSequencer) basicGraphicsMode.__init__(self, glpane) # no need to pass self as command, due to property below return
def __init__(self, commandSequencer): """ ... """ basicCommand.__init__(self, commandSequencer) # Now do whatever might be needed to init the command object, # or in the mixed case, the command-related attrs of the mixed object. # That might be nothing, since most attrs can just be initialized in # Enter, since they should be reinitialized every time we enter the # command anyway. # (If it's nothing, we probably don't need this method, but it's ok # to have it for clarity, especially if there is more than one # superclass.) return
def __init__(self, glpane): if GLPANE_IS_COMMAND_SEQUENCER: commandSequencer = glpane else: msg = "don't yet know how to find commandSequencer when not GLPANE_IS_COMMAND_SEQUENCER" # btw, glpane.win.commandSequencer doesn't work yet (in the case when they are the same) print msg assert 0, msg basicCommand.__init__(self, commandSequencer) basicGraphicsMode.__init__(self, glpane) # no need to pass self as command, due to property below return