コード例 #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
ファイル: 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
コード例 #4
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