当前位置: 首页>>代码示例>>Python>>正文


Python PM_Dialog.__init__方法代码示例

本文整理汇总了Python中PM.PM_Dialog.PM_Dialog.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PM_Dialog.__init__方法的具体用法?Python PM_Dialog.__init__怎么用?Python PM_Dialog.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PM.PM_Dialog.PM_Dialog的用法示例。


在下文中一共展示了PM_Dialog.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__(self, win, editCommand = None):
        """
        Constructor for the EditCommand_PM
        """
        # pw = part window.
        # Its subclasses will create their partwindow objects
        # (and destroy them after Done) -- @@ not be a good idea if we have
        # multiple partwindow support? (i.e. when win object is replaced(?) by
        # partwindow object for each partwindow).  But this works fine.
        # ..same guess -- because opening multiple windows is not supported
        # When we begin supporting that, lots of things will change and this
        # might be one of them .--- ninad 20070613

        self.editCommand = editCommand
        if editCommand:
            self.struct = self.editCommand.struct
        else:
            self.struct = None

        self.win      =  win
        self.w = win
        self.pw       =  None
        self.modePropertyManager = None


        PM_Dialog.__init__(self,
                           self.pmName,
                           self.iconPath,
                           self.title
                       )

        self._createFlyoutActions()
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:34,代码来源:EditCommand_PM.py

示例2: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
 def __init__(self):
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
            
     msg = "Example command created at %s" % time.asctime()
     
     # This causes the "Message" box to be displayed as well.
     self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault = False )
     return
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:10,代码来源:test_command_PMs.py

示例3: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__(self, parentMode):        
        self.parentMode = parentMode
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.o = self.parentMode.o
        self.pw = self.parentMode.pw

        
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)        
        self.showTopRowButtons(PM_DONE_BUTTON | PM_WHATS_THIS_BUTTON)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:12,代码来源:Ui_MovePropertyManager.py

示例4: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__(self):
        """Construct the Peptide Property Manager.
        """
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        # phi psi angles will define the secondary structure of the peptide chain
        self.phi = -57.0
        self.psi = -47.0
        self.chirality = 1
        self.ss_idx = 1
        self.peptide_cache = []

        self.updateMessageGroupBox()
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:15,代码来源:PeptideGeneratorPropertyManager.py

示例5: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__(self, win, commandrun=None):

        self.win = win

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
        GeneratorBaseClass.__init__(self, win)

        msg = "This Property Manager (PM) is used to display and/or test new \
               PM widgets avaiable in NanoEngineer-1's PM module."

        # This causes the "Message" box to be displayed as well.
        self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)
        return
开发者ID:octopus89,项目名称:NanoEngineer-1,代码行数:15,代码来源:PM_WidgetsDemoPropertyManager.py

示例6: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__(self):
        """
        Construct the Atom Property Manager.
        """
        PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
        self.addGroupBoxes()
        self.add_whats_this_text()

        msg = "Edit the Atom parameters and select <b>Preview</b> to \
        preview the structure. Click <b>Done</b> to insert the atom \
        into the model."

        # This causes the "Message" box to be displayed as well.
        self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault = False )
开发者ID:foulowl,项目名称:nanoengineer,代码行数:16,代码来源:AtomGeneratorPropertyManager.py

示例7: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
 def __init__(self):
     """
     Construct the "Build Graphene" Property Manager.
     """
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
     #@self._addGroupBoxes() 
     #@self.add_whats_this_text()
     
     msg = "Edit the Graphene sheet parameters and select <b>Preview</b> to \
     preview the structure. Click <b>Done</b> to insert it into the model."
     
     # This causes the "Message" box to be displayed as well.
     # setAsDefault=True causes this message to be reset whenever
     # this PropMgr is (re)displayed via show(). Mark 2007-06-01.
     self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=True)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:17,代码来源:GrapheneGeneratorPropertyManager.py

示例8: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__( self ):
        """
        Constructor for the DNA Generator property manager.
        """
        PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
        DebugMenuMixin._init1( self )


        msg = "Edit the DNA parameters and select <b>Preview</b> to \
        preview the structure. Click <b>Done</b> to insert it into \
        the model."

        # This causes the "Message" box to be displayed as well.
        # setAsDefault=True causes this message to be reset whenever
        # this PM is (re)displayed via show(). Mark 2007-06-01.
        self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault  =  True )
开发者ID:alaindomissy,项目名称:nanoengineer,代码行数:18,代码来源:DnaGeneratorPropertyManager.py

示例9: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__(self, parentCommand):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1(self)

        self.showTopRowButtons(PM_DONE_BUTTON | PM_WHATS_THIS_BUTTON)
        return
开发者ID:octopus89,项目名称:NanoEngineer-1,代码行数:19,代码来源:BreakOrJoinStrands_PropertyManager.py

示例10: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
 def __init__(self, win):
     """
     Construct the QuteMolX Property Manager.
     
     @param win: The main window.
     @type  win: QMainWindow
     """
     self.win = win
     self.pw  = None
     
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
     
     msg = "Select a QuteMolX rendering style and click the \
     <b>Launch QuteMolX</b> button when ready."
     
     # This causes the "Message" box to be displayed as well.
     self.updateMessage(msg)
     
     # Hide Preview and Restore defaults button for Alpha9.
     self.hideTopRowButtons(PM_RESTORE_DEFAULTS_BUTTON | PM_PREVIEW_BUTTON)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:22,代码来源:QuteMolPropertyManager.py

示例11: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw        
        self.o = self.win.glpane
        self.assy = self.win.assy
                    
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
        
        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)
        
        self.update_includeStrands() # Updates the message box.
        """
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:23,代码来源:OrderDna_PropertyManager.py

示例12: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane
        self.currentWorkingDirectory = env.prefs[workingDirectory_prefs_key]

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Modify the DNA display settings below."
        self.updateMessage(msg)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:23,代码来源:DnaDisplayStyle_PropertyManager.py

示例13: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw        
        self.o = self.win.glpane                 

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Modify the Stereo View settings below."

        self.updateMessage(msg)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:23,代码来源:StereoProperties_PropertyManager.py

示例14: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane
        self.currentWorkingDirectory = env.prefs[workingDirectory_prefs_key]

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Edit the color scheme for NE1, including the background color, "\
            "hover highlighting and selection colors, etc."
        self.updateMessage(msg)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:24,代码来源:ColorScheme_PropertyManager.py

示例15: __init__

# 需要导入模块: from PM.PM_Dialog import PM_Dialog [as 别名]
# 或者: from PM.PM_Dialog.PM_Dialog import __init__ [as 别名]
 def __init__(self, parentMode):
     """
     Constructor for the B{Movie} property manager class that defines 
     its UI.
     
     @param parentMode: The parent mode where this Property Manager is used
     @type  parentMode: L{movieMode}        
     """
     self.parentMode = parentMode
     self.w = self.parentMode.w
     self.win = self.parentMode.w
     self.o = self.win.glpane
     self.pw = self.parentMode.pw
     
     PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
     
     self.showTopRowButtons( PM_DONE_BUTTON | \
                             PM_CANCEL_BUTTON | \
                             PM_WHATS_THIS_BUTTON)
     
     
     msg = ''
     self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:25,代码来源:Ui_MoviePropertyManager.py


注:本文中的PM.PM_Dialog.PM_Dialog.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。