views:

33

answers:

1

I'd like to write a wxPython application that would run in different languages, updating itself automatically (with no need to close it and open it back) whenever I change the language. Is it possible to make a system that recognises and edits every widget that needs to be updated?

A: 

I don't think there is prebuilt facility or events in wxPython to trigger such change, but yes it is possible to write a system of your own e.g. you can have a central registry where each control which needs translation registers and when language changes you notify all those controls. It will be the responsibility of individual control to translate and update itself correctly.

Also see http://wiki.wxpython.org/RecipesI18n

Anurag Uniyal
I'm not sure if you can change language on the fly with wxPython'x getTranslation() methods
Steven Sproat