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, parentCommand): """ Constructor for the property manager. """ self.parentMode = parentCommand #We will use self.command hereonwards. self.parentMode is still declared #for safety -- 2008-05-29 self.command = self.parentMode self.w = self.parentMode.w self.win = self.parentMode.w self.pw = self.parentMode.pw self.o = self.win.glpane self.isAlreadyConnected = False self.isAlreadyDisconnected = False self._previous_model_changed_params = None _superclass.__init__(self, self.pmName, self.iconPath, self.title) DebugMenuMixin._init1( self ) self.showTopRowButtons( PM_DONE_BUTTON | \ PM_WHATS_THIS_BUTTON) self.defaultLogMessage = """Pairs of white cylinders (if any) in the 3D workspace indicate potential crossover sites. Clicking on such a cylinder pair will make that crossover.""" self.updateMessage(self.defaultLogMessage)
def __init__(self, parentCommand): """ Constructor for the property manager. """ self.parentMode = parentCommand #We will use self.command hereonwards. self.parentMode is still declared #for safety -- 2008-05-29 self.command = self.parentMode self.w = self.parentMode.w self.win = self.parentMode.w self.pw = self.parentMode.pw self.o = self.win.glpane self.isAlreadyConnected = False self.isAlreadyDisconnected = False self._previous_model_changed_params = None _superclass.__init__(self, self.pmName, self.iconPath, self.title) DebugMenuMixin._init1(self) self.showTopRowButtons( PM_DONE_BUTTON | \ PM_WHATS_THIS_BUTTON) self.defaultLogMessage = """Pairs of white cylinders (if any) in the 3D workspace indicate potential crossover sites. Clicking on such a cylinder pair will make that crossover.""" self.updateMessage(self.defaultLogMessage)
def __init__( self, win, editCommand ): """ Constructor for the Build DNA property manager. """ #For model changed signal #@see: self.model_changed() and self._current_model_changed_params #for example use self._previous_model_changed_params = None #see self.connect_or_disconnect_signals for comment about this flag self.isAlreadyConnected = False self.isAlreadyDisconnected = False self.endPoint1 = V(0, 0, 0) self.endPoint2 = V(0, 0, 0) self._numberOfBases = 0 self._conformation = 'B-DNA' self.duplexRise = 3.18 self.basesPerTurn = 10 self.dnaModel = 'PAM3' _superclass.__init__( self, win, editCommand) DebugMenuMixin._init1( self ) self.showTopRowButtons( PM_DONE_BUTTON | \ PM_WHATS_THIS_BUTTON) msg = "Use resize handles to resize the segments." self.updateMessage(msg)
def __init__(self, win, editCommand): """ Constructor for the Build DNA property manager. """ #For model changed signal #@see: self.model_changed() and self._current_model_changed_params #for example use self._previous_model_changed_params = None #see self.connect_or_disconnect_signals for comment about this flag self.isAlreadyConnected = False self.isAlreadyDisconnected = False self.endPoint1 = V(0, 0, 0) self.endPoint2 = V(0, 0, 0) self._numberOfBases = 0 self._conformation = 'B-DNA' self.duplexRise = 3.18 self.basesPerTurn = 10 self.dnaModel = 'PAM3' _superclass.__init__(self, win, editCommand) DebugMenuMixin._init1(self) self.showTopRowButtons( PM_DONE_BUTTON | \ PM_WHATS_THIS_BUTTON) msg = "Use resize handles to resize the segments." self.updateMessage(msg)
def __init__(self, win, editCommand): """ Constructor for the DNA Duplex property manager. """ self._cursorTextGroupBox = None self._colorChooser = None self.showCursorTextCheckBox = None self.referencePlaneListWidget = None _superclass.__init__(self, win, editCommand) DebugMenuMixin._init1(self)
def __init__( self, win, editCommand ): """ Constructor for the DNA Duplex property manager. """ self._cursorTextGroupBox = None self._colorChooser = None self.showCursorTextCheckBox = None self.referencePlaneListWidget = None _superclass.__init__( self, win, editCommand) DebugMenuMixin._init1( self )
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)
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 )
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
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
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, 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)
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)
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. """
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)
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)
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 = "Edit the lighting scheme for NE1. Includes turning lights on and off, "\ "changing light colors, changing the position of lights as well as,"\ "changing the ambient, diffuse, and specular properites." self.updateMessage(msg)
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)
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, 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 = "Edit the lighting scheme for NE1. Includes turning lights on and off, "\ "changing light colors, changing the position of lights as well as,"\ "changing the ambient, diffuse, and specular properites." self.updateMessage(msg)