本文整理汇总了Python中command_support.EditCommand_PM.EditCommand_PM.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python EditCommand_PM.__init__方法的具体用法?Python EditCommand_PM.__init__怎么用?Python EditCommand_PM.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类command_support.EditCommand_PM.EditCommand_PM
的用法示例。
在下文中一共展示了EditCommand_PM.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__( self, win, editCommand ):
"""
Constructor for the Build DNA property manager.
"""
#For model changed signal
self.previousSelectionParams = None
#Urmi 20080713: set the protein chunk name and its length
#for the first available chunk and not the selected one, that's
#not implemented as yet
#self.showProteinParametersAndSequenceEditorForInit(win)
#see self.connect_or_disconnect_signals for comment about this flag
self.isAlreadyConnected = False
self.isAlreadyDisconnected = False
EditCommand_PM.__init__( self,
win,
editCommand)
DebugMenuMixin._init1( self )
self.showTopRowButtons( PM_DONE_BUTTON | \
PM_CANCEL_BUTTON | \
PM_WHATS_THIS_BUTTON)
示例2: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__(self, command):
"""
Construct the Motor Property Manager.
"""
EditCommand_PM.__init__( self, command)
msg = "Attach a " + self.title + " to the selected atoms"
# This causes the "Message" box to be displayed as well.
self.updateMessage(msg)
self.glpane = self.win.glpane
# Hide Restore defaults button for Alpha9.
self.hideTopRowButtons(PM_PREVIEW_BUTTON | PM_RESTORE_DEFAULTS_BUTTON)
示例3: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__( self, command ):
"""
Constructor for the Build DNA property manager.
"""
self.current_protein = ""
self.sequenceEditor = command.win.createProteinSequenceEditorIfNeeded()
#see self.connect_or_disconnect_signals for comment about this flag
self.isAlreadyConnected = False
self.isAlreadyDisconnected = False
EditCommand_PM.__init__( self, command)
self.showTopRowButtons( PM_DONE_BUTTON | \
PM_CANCEL_BUTTON | \
PM_WHATS_THIS_BUTTON)
示例4: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__(self, command):
"""
Constructor for the Build Nanotube property manager.
"""
# Attributes for self._update_UI_do_updates() to keep track of changes
# in these , since the last call of that method. These are used to
# determine whether certain UI updates are needed.
self._previousSelectionParams = None
self._previousStructureParams = None
self._previousCommandStackParams = None
# see self.connect_or_disconnect_signals for comment about this flag
self.isAlreadyConnected = False
self.isAlreadyDisconnected = False
EditCommand_PM.__init__(self, command)
self.showTopRowButtons(PM_DONE_BUTTON | PM_WHATS_THIS_BUTTON)
return
示例5: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__(self, win, planeEditCommand):
"""
Construct the Plane Property Manager.
@param plane: The plane.
@type plane: L{Plane}
"""
#see self.connect_or_disconnect_signals for comment about this flag
self.isAlreadyConnected = False
self.isAlreadyDisconnected = False
EditCommand_PM.__init__( self,
win,
planeEditCommand)
msg = "Insert a Plane parallel to the screen. Note: This feature is "\
"experimental for Alpha9 and has known bugs."
# This causes the "Message" box to be displayed as well.
self.updateMessage(msg)
# self.resized_from_glpane flag makes sure that the
#spinbox.valueChanged()
# signal is not emitted after calling spinbox.setValue.
self.resized_from_glpane = False
# Hide Preview and Restore defaults button for Alpha9.
self.hideTopRowButtons(PM_RESTORE_DEFAULTS_BUTTON)
# needed to figure out if the model has changed or not
self.previousPMParams = None
self.gridColor = black
self.gridXSpacing = 4.0
self.gridYSpacing = 4.0
self.gridLineType = 3
self.displayLabels = False
self.originLocation = LOWER_LEFT
self.displayLabelStyle = LABELS_ALONG_ORIGIN
示例6: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__( self, win, editCommand ):
"""
Constructor for the Build Nanotube property manager.
"""
#For model changed signal
self.previousSelectionParams = None
#see self.connect_or_disconnect_signals for comment about this flag
self.isAlreadyConnected = False
self.isAlreadyDisconnected = False
self.sequenceEditor = None
EditCommand_PM.__init__( self,
win,
editCommand)
DebugMenuMixin._init1( self )
self.showTopRowButtons( PM_DONE_BUTTON | \
PM_WHATS_THIS_BUTTON)
示例7: __init__
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import __init__ [as 别名]
def __init__(self, command):
"""
Construct the Plane Property Manager.
@param plane: The plane.
@type plane: L{Plane}
"""
#see self.connect_or_disconnect_signals for comment about this flag
self.isAlreadyConnected = False
self.isAlreadyDisconnected = False
self.gridColor = black
self.gridXSpacing = 4.0
self.gridYSpacing = 4.0
self.gridLineType = 3
self.displayLabels = False
self.originLocation = PLANE_ORIGIN_LOWER_LEFT
self.displayLabelStyle = LABELS_ALONG_ORIGIN
EditCommand_PM.__init__( self, command)
# Hide Preview and Restore defaults buttons
self.hideTopRowButtons(PM_RESTORE_DEFAULTS_BUTTON)