本文整理汇总了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)
示例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)
示例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()
示例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
示例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
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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()
示例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
示例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)