opendrift_gui

Module Contents

Classes

TextRedirector

ToolTip

OpenDriftGUI

Toplevel widget of Tk which represents mostly the main window

Functions

CreateToolTip(widget, text)

class opendrift_gui.TextRedirector(widget, tag='stdout')
write(self, str)
flush(self)
class opendrift_gui.ToolTip(widget)

Bases: object

showtip(self, text)

Display text in tooltip window

hidetip(self)
opendrift_gui.CreateToolTip(widget, text)
class opendrift_gui.OpenDriftGUI

Bases: tkinter.Tk

Toplevel widget of Tk which represents mostly the main window of an application. It has an associated Tcl interpreter.

Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will be created. BASENAME will be used for the identification of the profile file (see readprofile). It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME is the name of the widget class.

opendrift_models
extra_args
GUI_config
copy_position(self, a, b, c)
handle_result(self, command)
validate_config(self, value_if_allowed, prior_value, key)

From config menu selection.

set_model(self, model, rebuild_gui=True)
set_config_checkbox(self, key, i)
set_config_enum(self, event, key, i)
show_help(self)
convert_lonlat(self)
check_seeding(self)
run_opendrift(self)