Tkinter: how to fill values in OptionMenu dynamically
Russell E. Owen
no at spam.invalid
Thu Apr 22 14:24:45 EDT 2004
In article <mailman.896.1082605756.20120.python-list at python.org>,
Jeffrey Barish <jeffbarish at starband.net> wrote:
>Is there a way to fill the values in an OptionMenu dynamically? I need
>something like the add_command method from Menu. Is there a better way
>to implement a pull-down list?
I see other postings showing two common solutions. A third is to try
RO.Wdg from my RO package
<http://www.astro.washington.edu/rowen/ROPython.html>. It may be a bit
more stuff than you want, but RO.Wdg.OptionMenu allows you to set new
values whenever you want and it includes improved versions of most of
the other widgets.
-- Russell
More information about the Python-list
mailing list