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)
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)
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)
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)
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)
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)
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)
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
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
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
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
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)
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)
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)