Пример #1
0
 def _init_flyoutActions(self):
     """
     Defines the actions to be added in the flyout toolbar section of the 
     Command Toolbar.
     """
     PasteMode._init_flyoutActions(self)
     self.exitModeAction.setText("Exit Partlib")
Пример #2
0
    def __init__(self, glpane):
        """
        Constructor for the class PartLibraryMode. This mode allows 
        depositing parts from the partlib into the 3D workspace. Its property 
        manager shows the current selected part in its 'Preview' box. The part 
        can be deposited by doubleclicking on empty space in 3D workspace or if
        it has a hotspot, it can be deposited on a bondpoint of an existing 
        model.  User can return to previous mode by hitting  'Escape' key  
        or pressing 'Done' button in the Part Library mode. 

        @param glpane: GLPane object 
        @type  glpane: L{GLPane} 

        @see: L{PasteMode} , L{depositMode}
        """
        PasteMode.__init__(self, glpane)