Package topo :: Package tkgui :: Module topoconsole :: Class TopoConsole
[hide private]
[frames] | no frames]

Class TopoConsole

source code


Main window for the Tk-based GUI.
Nested Classes [hide private]

Inherited from Tkinter.Misc: getdouble, getint

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
_getmenubar(self) source code
 
__getitem__(self, menu_name)
Allow dictionary-style access to the menu bar.
source code
 
__init__(self, root, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
gui_warning(self, *args) source code
 
gui_message(self, *args) source code
 
title(self, t=None)
Set the title of this widget.
source code
 
_init_widgets(self) source code
 
__simulation_menu(self)
Add the simulation menu options to the menubar.
source code
 
open_test_pattern(self) source code
 
__create_plots_menu(self)
Add the plot menu to the menubar, with Basic plots on the menu itself and others in cascades by category (the plots come from plotgroup_templates).
source code
 
refresh_plots_menu(self) source code
 
__help_menu(self)
Add the help menu options.
source code
 
quit_topographica(self, check=True, exit_status=0)
Quit topographica.
source code
 
run_script(self)
Dialog to run a user-selected script
source code
 
run_example_script(self) source code
 
save_script_repr(self) source code
 
load_snapshot(self)
Dialog to load a user-selected snapshot (see topo.command.basic.load_snapshot() ).
source code
 
save_snapshot(self)
Dialog to save a snapshot (see topo.command.basic.save_snapshot() ).
source code
 
auto_refresh(self)
Refresh all windows in auto_refresh_panels.
source code
 
refresh_activity_windows(self)
Update any windows with a plotgroup_key of 'Activity'.
source code
 
open_model_editor(self)
Start the Model editor.
source code
 
new_about_window(self) source code
 
open_location(self, locations)
Try to open one of the specified locations in a new window of the default browser.
source code
 
status_message(self, m) source code
 
run_simulation(self, event=None)
Run the simulation for the duration specified in the 'run for' taggedslider.
source code
 
run_step(self) source code
 
set_step_button_state(self) source code
 
__get_status_bar(self, i=2) source code
 
open_progress_window(self, timer, title=None)
Provide a convenient link to progress bars.
source code

Inherited from param.tk.AppWindow: mydestroy, renew

Inherited from param.tk.ScrolledWindow: sizeright

Inherited from Tkinter.BaseWidget: destroy

Inherited from Tkinter.BaseWidget (private): _do, _setup

Inherited from Tkinter.Misc: __contains__, __setitem__, __str__, after, after_cancel, after_idle, bbox, bell, bind, bind_all, bind_class, bindtags, cget, clipboard_append, clipboard_clear, clipboard_get, colormodel, columnconfigure, config, configure, deletecommand, event_add, event_delete, event_generate, event_info, focus, focus_displayof, focus_force, focus_get, focus_lastfor, focus_set, getboolean, getvar, grab_current, grab_release, grab_set, grab_set_global, grab_status, grid_bbox, grid_columnconfigure, grid_location, grid_propagate, grid_rowconfigure, grid_size, grid_slaves, image_names, image_types, keys, lift, lower, mainloop, nametowidget, option_add, option_clear, option_get, option_readfile, pack_propagate, pack_slaves, place_slaves, propagate, quit, register, rowconfigure, selection_clear, selection_get, selection_handle, selection_own, selection_own_get, send, setvar, size, slaves, tk_bisque, tk_focusFollowsMouse, tk_focusNext, tk_focusPrev, tk_menuBar, tk_setPalette, tk_strictMotif, tkraise, unbind, unbind_all, unbind_class, update, update_idletasks, wait_variable, wait_visibility, wait_window, waitvar, winfo_atom, winfo_atomname, winfo_cells, winfo_children, winfo_class, winfo_colormapfull, winfo_containing, winfo_depth, winfo_exists, winfo_fpixels, winfo_geometry, winfo_height, winfo_id, winfo_interps, winfo_ismapped, winfo_manager, winfo_name, winfo_parent, winfo_pathname, winfo_pixels, winfo_pointerx, winfo_pointerxy, winfo_pointery, winfo_reqheight, winfo_reqwidth, winfo_rgb, winfo_rootx, winfo_rooty, winfo_screen, winfo_screencells, winfo_screendepth, winfo_screenheight, winfo_screenmmheight, winfo_screenmmwidth, winfo_screenvisual, winfo_screenwidth, winfo_server, winfo_toplevel, winfo_viewable, winfo_visual, winfo_visualid, winfo_visualsavailable, winfo_vrootheight, winfo_vrootwidth, winfo_vrootx, winfo_vrooty, winfo_width, winfo_x, winfo_y

Inherited from Tkinter.Misc (private): _bind, _configure, _displayof, _getboolean, _getdoubles, _getints, _grid_configure, _nametowidget, _options, _register, _report_exception, _root, _substitute

Inherited from Tkinter.Wm: aspect, attributes, client, colormapwindows, command, deiconify, focusmodel, frame, geometry, grid, group, iconbitmap, iconify, iconmask, iconname, iconposition, iconwindow, maxsize, minsize, overrideredirect, positionfrom, protocol, resizable, sizefrom, state, transient, withdraw, wm_aspect, wm_attributes, wm_client, wm_colormapwindows, wm_command, wm_deiconify, wm_focusmodel, wm_frame, wm_geometry, wm_grid, wm_group, wm_iconbitmap, wm_iconify, wm_iconmask, wm_iconname, wm_iconposition, wm_iconwindow, wm_maxsize, wm_minsize, wm_overrideredirect, wm_positionfrom, wm_protocol, wm_resizable, wm_sizefrom, wm_state, wm_title, wm_transient, wm_withdraw

Inherited from param.tk.TkParameterized: gui_get_param, gui_set_param, hide_param, pack_param, repack_param, unhide_param, unpack_param, update_selector

Inherited from param.tk.TkParameterizedBase: __getattribute__, __repr__, __setattr__, change_PO, get_parameter_object, get_parameter_value, get_source_po, set_parameter_value

Inherited from param.parameterized.Parameterized: __getstate__, __setstate__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  name = <param.parameterized.String object at 0xb28dc6c>
String identifier for this object.

Inherited from param.tk.AppWindow: window_icon_path

Inherited from Tkinter.Misc: _noarg_

Inherited from Tkinter.Misc (private): _subst_format, _subst_format_str, _tclCommands

Inherited from param.tk.TkParameterized: pretty_parameters

Inherited from param.tk.TkParameterizedBase (private): _extraPO

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]
  menubar

Inherited from object: __class__

Method Details [hide private]

__getitem__(self, menu_name)
(Indexing operator)

source code 
Allow dictionary-style access to the menu bar.
Overrides: Tkinter.Misc.cget

__init__(self, root, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

title(self, t=None)

source code 
Set the title of this widget.
Overrides: Tkinter.Wm.wm_title
(inherited documentation)

run_script(self)

source code 

Dialog to run a user-selected script

The script is exec'd in __main__.__dict__ (i.e. as if it were specified on the commandline.)

save_snapshot(self)

source code 

Dialog to save a snapshot (see topo.command.basic.save_snapshot() ).

Adds the file extension .typ if not already present.

auto_refresh(self)

source code 

Refresh all windows in auto_refresh_panels.

Panels can add and remove themselves to the list; those in the list will have their refresh() method called whenever this console's autorefresh() is called.

refresh_activity_windows(self)

source code 

Update any windows with a plotgroup_key of 'Activity'.

Used primarily for debugging long scripts that present a lot of activity patterns.

open_location(self, locations)

source code 

Try to open one of the specified locations in a new window of the default browser. See webbrowser module for more information.

locations should be a tuple.


Property Details [hide private]

menubar

Get Method:
_getmenubar(self)