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