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

Class NetCDFToASCIIConversionDialog

source code

Widgets.Toplevel --+
                   |
                  NetCDFToASCIIConversionDialog

Sets up a dialog that allows the conversion of any numeric variables present in a NetCDF file into an ASCII file.

Instance Methods [hide private]
 
__init__(self, parent, title=None, netcdf=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)
This method is called when the user clicks on the OK button of the conversion dialog.
source code
 
openNetCDFFile(self, event=None)
This method opens a NetCDF file and updates the dialog with the data read from that file.
source code
 
selectVariable(self) source code
 
displayNetCDFContents(self)
This method display the variables found in the NetCDF file.
source code
Method Details [hide private]

__init__(self, parent, title=None, netcdf=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.

apply(self)

source code 

This method is called when the user clicks on the OK button of the conversion dialog. It performs the conversion from the loaded NetCDF file to the selected ASCII/CDL file.

openNetCDFFile(self, event=None)

source code 

This method opens a NetCDF file and updates the dialog with the data read from that file.
Arguments:
    -event: Tkinter event.