[Tkinter-discuss] Internationalising Tkinter

Fredrik Lundh fredrik at pythonware.com
Fri May 6 18:45:08 CEST 2005


Martin Franklin wrote:

> Although I think you mean __call__ since you are calling the instance
> T() not slicing or indexing it T[]

I think I really meant

        def get(self, text):
            return self.texts.get(text, text)

    ... get country/language code (e.g. via the locale module)

    T = Translator(language).get

> Whichever method I choose, I'm glad to say with python it's _almost_ too
> easy!

that's the whole point of using Python, of course.

</F>





More information about the Tkinter-discuss mailing list