Package schrodinger :: Package application :: Package matsci :: Module mswidgets :: Class StageFrame
[hide private]
[frames] | no frames]

Class StageFrame

PyQt4.QtGui.QFrame --+    
                     |    
 ui.qt.swidgets.SFrame --+
                         |
                        StageFrame

The base frame for a stage in a MultiStageArea

Contains a Toolbutton for a title and some Window-manager-like control buttons in the upper right corner

Instance Methods [hide private]
 
__init__(self, master, layout=None, copy_stage=None, stage_type=None, icons=None)
Create a DesmondStageFrame instance
 
layOut(self, copy_stage=None)
Lay out any custom widgets
 
initialize(self, copy_stage=None)
Perform any custom initialization before the widget is finalized
 
createControlButtons(self)
Create upper-right corner control buttons as requested by the user
 
createIconsIfNecessary(self)
Factory to create button icons if they have not been created
 
toggleVisibility(self, show=False)
Show or hide the stage
 
updateLabel(self)
Set the label of the title button that toggles the stage open and closed
 
moveUp(self)
Move the stage up towards the top of the panel 1 stage
 
moveDown(self)
Move the stage down towards the bottom of the panel 1 stage
 
delete(self)
Delete this stage
 
copy(self)
Create a copy of this stage
 
reset(self)
Resets the parameters to their default values.
Class Variables [hide private]
  icons = {}
Method Details [hide private]

__init__(self, master, layout=None, copy_stage=None, stage_type=None, icons=None)
(Constructor)

 

Create a DesmondStageFrame instance

Parameters:
  • master (QWidget) - The panel widget
  • layout (QLayout) - The layout the frame should be placed into
  • copy_stage (StageFrame) - The StageFrame this StageFrame should be a copy of. The default is None, which will create a new default stage.
  • stage_type - The type of stage to create, should be something meaningful to the subclass. The value is stored but not used in this parent class.
  • icons (set) - A set of module constants indicating which icons should be made into control buttons in the upper right corner. UP, DOWN, OPEN, CLOSE, DELETE, COPY
Overrides: ui.qt.swidgets.SFrame.__init__

layOut(self, copy_stage=None)

 

Lay out any custom widgets

Parameters:
  • copy_stage (StageFrame) - The StageFrame this StageFrame should be a copy of. The default is None, which will create a new default stage.

initialize(self, copy_stage=None)

 

Perform any custom initialization before the widget is finalized

Parameters:
  • copy_stage (StageFrame) - The StageFrame this StageFrame should be a copy of. The default is None, which will create a new default stage.

toggleVisibility(self, show=False)

 

Show or hide the stage

Parameters:
  • show (bool) - Force the stage to show itself