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


next up previous contents index
Next: autogui.get - Function Up: autogui - Tool Previous: autogui - Constructor


autogui.buttonbar - Function



Package display
Module widgets
Tool autogui


Return the frame in which buttons are placed


Synopsis
buttonbar()


Returns
frame


Description

This function returns a handle to the frame in which the autogui tool places any buttons, such as the action button and the dismiss button. This is provided so that programmers can add their own buttons in a simple way. A more flexible way to do this is to provide a parent frame to the autogui tool constructor, and build your own GUI in the same frame. Note that this function is only available if a top-level frame was not given during construction.



Example

Assuming you have already created an autogui tool in the variable myautogui, perhaps as per the above example, you may do something like this to place a ``Free Beer!'' button near the ``Go!'' button:

# ...
myf := myautogui.buttonbar();
myb := dws.button(myf, 'Free Beer!', type='action');
whenever myb->press do {
  # ...
}
# ...





next up previous contents index
Next: autogui.get - Function Up: autogui - Tool Previous: autogui - Constructor   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