コード例 #1
0
ファイル: modes.py プロジェクト: elfion/nanoengineer
 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
コード例 #2
0
ファイル: modes.py プロジェクト: vcsrc/nanoengineer
    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
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
ファイル: modes.py プロジェクト: ematvey/NanoEngineer-1
 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
コード例 #6
0
    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