in reply to Re: TK - Updating Main Window after user input
in thread TK - Updating Main Window after user input
This is the sort of thing I would tend to put in a drop-down or pop-up menu, or in a listbox (where setting "selectMode" to "single" has the effect of making the listbox items behave like radio buttons). It's relatively easy to add or remove elements from a menu, and the pop-up or drop-down behavior means that changes in the set of buttons can go on "behind the scenes". It's really easy to add or remove items from a listbox, which has the added advantage of providing a simple scrolling mechanism (see Tk::Scrolled). Either a pull-down menu or a listbox would be a lot more effecient than re-running the geometry manager on one or more frames to add and remove whole widgets -- and could even seem more sensible from the user's perspective. Is there some compelling reason to be adding and destroying radio buttons in the main window while the user is watching?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: TK - Updating Main Window after user input
by crabbdean (Pilgrim) on Jan 08, 2004 at 12:43 UTC |