Skip to Main Content
Python GUI Programming Cookbook
book

Python GUI Programming Cookbook

by Burkhard Meier
December 2015
Beginner to intermediate content levelBeginner to intermediate
350 pages
6h 49m
English
Packt Publishing
Content preview from Python GUI Programming Cookbook

Preparing the GUI for internationalization

In this recipe, we will prepare our GUI for internationalization by realizing that not all is as easy as could be expected when translating English into foreign languages.

We still have one problem to solve and that is how to properly display non-English Unicode characters from foreign languages.

One might expect that displaying the German ä, ö, and ü Unicode umlaut characters would be handled by Python 3 automatically, but this is not the case.

Getting ready

We will continue to use the Python GUI we developed in recent chapters. First, we will change the default language to German in the GUI.py initialization code.

We do this by uncommenting the line self.i18n = I18N('de').

How to do it...

When we change the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python GUI Programming - A Complete Reference Guide

Python GUI Programming - A Complete Reference Guide

Alan D. Moore, B. M. Harwani
Python Network Programming Cookbook - Second Edition

Python Network Programming Cookbook - Second Edition

Pradeeban Kathiravelu, Dr. M. O. Faruque Sarker

Publisher Resources

ISBN: 9781785283758Supplemental Content