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


Python PM_Dialog.PM_Dialog类代码示例

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


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

示例1: show

 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     self._updateAllWidgets()
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect = True)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:7,代码来源:ColorScheme_PropertyManager.py

示例2: show

 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     # self.updateDnaDisplayStyleWidgets()
     self.connect_or_disconnect_signals(isConnect = True)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:7,代码来源:StereoProperties_PropertyManager.py

示例3: __init__

    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,代码行数:32,代码来源:EditCommand_PM.py

示例4: show

 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect=True)
     return
开发者ID:octopus89,项目名称:NanoEngineer-1,代码行数:7,代码来源:BreakOrJoinStrands_PropertyManager.py

示例5: __init__

 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,代码行数:8,代码来源:test_command_PMs.py

示例6: show

 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show)
     """
     if self.isVisible(): # Fixes bug 2680. --Mark 2008-03-19
         return
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect = True)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:8,代码来源:QuteMolPropertyManager.py

示例7: close

    def close(self):
        """
        Closes the Property Manager. Overrides PM_Dialog.close.
        """
        self.connect_or_disconnect_signals(False)
        PM_Dialog.close(self)

        # Restore the original global display style.
        self.o.setGlobalDisplayStyle(self.originalDisplayStyle)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:9,代码来源:DnaDisplayStyle_PropertyManager.py

示例8: show

 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show)
     """
     self._update_widgets_in_PM_before_show()
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect = True)
     self.enable_or_disable_gui_actions(bool_enable = False)
     self.updateCommandToolbar(bool_entering = True)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:9,代码来源:EditCommand_PM.py

示例9: close

    def close(self):
        """
        Closes the Property Manager. Overrides PM_Dialog.close.
        """
        # this is important since these pref keys are used in other command modes
        # as well and we do not want to see the 5' end arrow in Inset DNA mode

        self.connect_or_disconnect_signals(False)
        PM_Dialog.close(self)
开发者ID:octopus89,项目名称:NanoEngineer-1,代码行数:9,代码来源:BreakOrJoinStrands_PropertyManager.py

示例10: close

 def close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """   
     #First exit temporary modes (e.g. Pan mode) if any.
     currentCommand = self.win.commandSequencer.currentCommand 
     if not currentCommand.command_has_its_own_gui:
         currentCommand.Done()
     self.connect_or_disconnect_signals(isConnect = False)
     PM_Dialog.close(self) 
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:10,代码来源:QuteMolPropertyManager.py

示例11: __init__

    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,代码行数:10,代码来源:Ui_MovePropertyManager.py

示例12: close

 def close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """
     #First exit temporary modes (e.g. Pan mode) if any.
     currentCommand = self.win.commandSequencer.currentCommand
     if not currentCommand.command_has_its_own_gui:
         currentCommand.Done()
     self.connect_or_disconnect_signals(False)
     self.enable_or_disable_gui_actions(bool_enable = True)
     self.updateCommandToolbar(bool_entering = False)
     PM_Dialog.close(self)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:12,代码来源:EditCommand_PM.py

示例13: __init__

    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,代码行数:13,代码来源:PeptideGeneratorPropertyManager.py

示例14: __init__

    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,代码行数:13,代码来源:PM_WidgetsDemoPropertyManager.py

示例15: show

    def show(self):
        """
        Shows the Property Manager. Overrides PM_Dialog.show.
        """
        self.sequenceEditor = self.win.createProteinSequenceEditorIfNeeded()
        self.sequenceEditor.hide()
        PM_Dialog.show(self)

        # Update all PM widgets, then establish their signal-slot connections.
        # note: It is important to update the widgets *first* since doing
        # it in the reverse order will generate signals when updating
        # the PM widgets (via updateDnaDisplayStyleWidgets()), causing
        # unneccessary repaints of the model view.
        self.connect_or_disconnect_signals(isConnect = True)
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:14,代码来源:EditRotamers_PropertyManager.py


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