示例#1
0
    def init_gui(self):
        """
        Initialize GUI for this mode 
        """

        if self.propMgr is None:
            self.propMgr = LightingScheme_PropertyManager(self)
            #@bug BUG: following is a workaround for bug 2494.
            #This bug is mitigated as propMgr object no longer gets recreated
            #for modes -- niand 2007-08-29
            changes.keep_forever(self.propMgr)

        self.propMgr.show()
class LightingScheme_Command(EditCommand): 
    """
    
    """
    # class constants
    
    # not sure which class should it inherit
    
    commandName = 'LIGHTING_SCHEME'
    default_mode_status_text = ""
    featurename = "Lighting Scheme"
         
    hover_highlighting_enabled = True
    GraphicsMode_class = LightingScheme_GraphicsMode
   
    
    command_can_be_suspended = False
    command_should_resume_prevMode = True 
    command_has_its_own_gui = True
    
    flyoutToolbar = None

    def init_gui(self):
        """
        Initialize GUI for this mode 
        """
        
        
        if self.propMgr is None:
            self.propMgr = LightingScheme_PropertyManager(self)
            #@bug BUG: following is a workaround for bug 2494.
            #This bug is mitigated as propMgr object no longer gets recreated
            #for modes -- niand 2007-08-29
            changes.keep_forever(self.propMgr)  
            
        self.propMgr.show()
            
        
    def restore_gui(self):
        """
        Restore the GUI 
        """
            
        if self.propMgr is not None:
            self.propMgr.close()
示例#3
0
class LightingScheme_Command(EditCommand):
    """
    
    """
    # class constants

    # not sure which class should it inherit

    commandName = 'LIGHTING_SCHEME'
    default_mode_status_text = ""
    featurename = "Lighting Scheme"

    hover_highlighting_enabled = True
    GraphicsMode_class = LightingScheme_GraphicsMode

    command_can_be_suspended = False
    command_should_resume_prevMode = True
    command_has_its_own_gui = True

    flyoutToolbar = None

    def init_gui(self):
        """
        Initialize GUI for this mode 
        """

        if self.propMgr is None:
            self.propMgr = LightingScheme_PropertyManager(self)
            #@bug BUG: following is a workaround for bug 2494.
            #This bug is mitigated as propMgr object no longer gets recreated
            #for modes -- niand 2007-08-29
            changes.keep_forever(self.propMgr)

        self.propMgr.show()

    def restore_gui(self):
        """
        Restore the GUI 
        """

        if self.propMgr is not None:
            self.propMgr.close()
 def init_gui(self):
     """
     Initialize GUI for this mode 
     """
     
     
     if self.propMgr is None:
         self.propMgr = LightingScheme_PropertyManager(self)
         #@bug BUG: following is a workaround for bug 2494.
         #This bug is mitigated as propMgr object no longer gets recreated
         #for modes -- niand 2007-08-29
         changes.keep_forever(self.propMgr)  
         
     self.propMgr.show()