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, 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