Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: widgetserver.unsetmode - Function Up: widgetserver - Tool Previous: widgetserver.guientry - Function


widgetserver.setmode - Function



Package display
Module widgets
Tool widgetserver


Set the context/mode


Synopsis
setmode(mode)


Arguments

mode Which mode to use
Allowed: String from 'app', 'glish'


Description
This function is used to set the mode of a widgetserver to either 'app' or 'glish'. Before building a GUI, you should set what mode you would like the widgetserver to be in, then build your GUI. For example:
dws.setmode('glish');
f := dws.frame();
# ...
would produce a GUI with standard Glish/Tk default colors, font and relief for the various widgets. The widgetserver stores its previous mode/s, so it is recommended that after building your GUI, you restore the previous mode with the unsetmode function. Normally, AIPS++ GUIs should be written with the mode set to 'app'.





next up previous contents index
Next: widgetserver.unsetmode - Function Up: widgetserver - Tool Previous: widgetserver.guientry - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15