How to change menu text with Tkinter?
Rob Wolfe
blue99 at interia.pl
Wed Sep 27 10:07:14 EDT 2006
Phil Schmidt wrote:
> I am making a little Tkinter GUI app that needs to be in several
> languages (english, french, etc.), adjustable at runtime via a menu
> pick to select the language. The only way I can see to change text in
> the menus entries is to destroy them and recreate them usiing different
> labels. This seems very clunky though, and there must be a better way.
> Can anyone offer any pointers or a short example for how to do this?
Try this:
menu.entryconfig(index, label="new_name")
HTH,
Rob
More information about the Python-list
mailing list