/ . / Demo / DemoGUI.py / DemoGUI
This class defines a graphical user interface to be
used for navigating through demos within Chimera. Each panel in a DemoGUI represents a seperate step in the
corresponding demo. Clicking Next proceeds to the next panel
and executes all related Midas commands. Depending on the
content of the demo, some steps will allow you to click
Back , reverting back to the last step (this is reflected
both in the text in the DemoGUI and in the state of the
Chimera session.)
The AutoRun button cycles through each panel, with a
predetermined delay in between each step
Methods
|
|
|
saveDemo
|
saveDemo ( self, dest_demo_file )
Exceptions
|
|
chimera.UserError, "Error while writing file:\n%s\n" % what
|
|
|
save_position
|
save_position ( self, pos_name )
|
|
setNextNavState
|
setNextNavState ( self, new_state )
|
|
doSeveralMidasCommands
|
doSeveralMidasCommands ( self, cmds )
just wraps doMidasCommand , but takes care of disabling Next
and Back buttons s.t. user doesn't click Next while commands
for a certain panel are still executing...
|
|
setBackNavState
|
setBackNavState ( self, new_state )
|
|
Back
|
Back ( self )
Override WizShell's Back function, because we [possibly ] have to execute Midas
commands when the Back button is pushed.
|
|
Next
|
Next ( self )
Override WizShell's Next function, because we need to actually execute Midas
commands when the Next button is pushed.
|
|
makeCounterMenu
|
makeCounterMenu ( self, parent )
navMenuButton = Tkinter.Menubutton(self.countFrame,
textvariable = self.panelCountVar,
font=self.small_font)
|
|
forgetPositions
|
forgetPositions ( self )
|
|
fillInUI
|
fillInUI ( self, parent )
|
|
getTitle
|
getTitle ( self )
|
|
AutoRun
|
AutoRun ( self, doNext=True )
This function will be called when the AutoRun button is pushed.
|
|
closeOpenedModels
|
closeOpenedModels ( self )
|
|
Close
|
Close (
self,
triggerName=None,
closure=None,
data=None,
)
This function will be called when dialog is dismissed, or demo is
finished. Close everything and stop all motion.
|
|
searchForFilenames
|
searchForFilenames (
self,
demo,
fname_list,
)
looks at all the commands in demo to see which of the
files in fname_list are mentioned. returns a subset of
that list
|
|
doMidasCommand
|
doMidasCommand ( self, cmd )
cmd is the text of a Midas command
This function will execute cmd using the Midas command line
|
|
__init__
|
__init__ ( self, demo )
demo is an instance of a ChimeraDemo object. It contains
all the necessary information to conduct a demo.
|
|
saveDemoAs
|
saveDemoAs ( self )
|
|
|