Support
Alberto Troiano
atroiano at procom.com.bo
Mon Mar 28 07:16:22 EST 2005
I have a question about Menus
I know how to use menhubuttons like add_checkbutton and so but how can I
select one of them by default?
When I start the application I want that one add_radiobutton be on.
Another question, if I can put the disabled state to one menu_button, later
how can I put the state in normal??
I'm sending the code that I made for the Menu:
def MENU():
menubar=Menu(root)
file=Menu(menubar,tearoff=0)
file.add_command(label="Nuevo",underline=0,command=nuevo,state="disable")
file.add_radiobutton(label="Facil",underline=0,command=nuevo)
file.add_radiobutton(label="Medio",underline=0,command=nuevo)
file.add_radiobutton(label="Dificil",underline=0,command=nuevo)
menubar.add_cascade(label="File",underline=0,menu=file)
root.config(menu=menubar)
The first question is how I can select by default one of the radiobuttons?
And the second is how can I "enable" (after this function) the first button?
Thanks in advanced
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050328/0a40bfbe/attachment.html>
More information about the Python-list
mailing list