Package nMOLDYN :: Package GUI :: Module PDBSnapshotGeneratorDialog :: Class PDBSnapshotGeneratorDialog
[hide private]
[frames] | no frames]

Class PDBSnapshotGeneratorDialog

source code

Widgets.Toplevel --+
                   |
                  PDBSnapshotGeneratorDialog

Sets up a dialog used to export one or several trajectory frames into a PDB file.


Note: if a trajectory has been previously loaded in nMOLDYN this will be the one proposed for extraction by default. Otherwise, the user can still choose a trajectory to visualize from the dialog.

Instance Methods [hide private]
 
__init__(self, parent, title=None, trajectory=None)
The constructor.
source code
 
body(self, master)
Create dialog body.
source code
 
buttonbox(self)
Add standard button box.
source code
 
ok(self, event=None) source code
 
cancel(self, event=None) source code
 
validate(self) source code
 
apply(self) source code
 
openTrajectory(self, event=None)
Ths method is called when the user clicks on the 'Browse' button of the trajectory visualization dialog.
source code
Method Details [hide private]

__init__(self, parent, title=None, trajectory=None)
(Constructor)

source code 

The constructor.

Parameters:
  • parent - the parent widget.
  • title (string) - a string specifying the title of the dialog.

body(self, master)

source code 

Create dialog body. Return widget that should have initial focus.

openTrajectory(self, event=None)

source code 

Ths method is called when the user clicks on the 'Browse' button of the trajectory visualization dialog. It opens a file browser. After the file selection some of the dialog widgets are updated with the informations coming from the loaded trajectory.