Package schrodinger :: Package ui :: Package qt :: Module appframework :: Class WriteDialog
[hide private]
[frames] | no frames]

Class WriteDialog

Toplevel Qt widget that mimics the Write dialog.

The jobname is returned by activate()

Instance Methods [hide private]
 
__init__(self, parent, jobname='', title='', checkcommand=None, **kw)
The 'jobname' will be the starting value of the job name field.
 
activate(self)
Display the dialog and return user-selected job name.
 
warning(self, text)
Display a warning window with the specified text.
 
writePressed(self)
Called when the Write button is pressed.
Method Details [hide private]

__init__(self, parent, jobname='', title='', checkcommand=None, **kw)
(Constructor)

 

The 'jobname' will be the starting value of the job name field. The 'title' will be used as the title of the window.

If pre_close_command is specified, it will be run when the user presses the Write button. The dialog is only closed if that function returns 0.

writePressed(self)

 

Called when the Write button is pressed. Closes the dialog only if the jobname is valid.