Chapter 8. Internationalization and Testing

In this chapter, we will internationalize and test our Python GUI covering the following recipes:

  • Displaying widget text in different languages
  • Changing the entire GUI language all at once
  • Localizing the GUI
  • Preparing the GUI for internationalization
  • How to design a GUI in an agile fashion
  • Do we need to test the GUI code?
  • Setting debug watches
  • Configuring different debug output levels
  • Creating self-testing code using Python's __main__ section
  • Creating robust GUIs using unit tests
  • How to write unit tests using the Eclipse PyDev IDE

Introduction

In this chapter, we will internationalize our GUI by displaying text on labels, buttons, tabs, and other widgets, in different languages.

We will start simply and then explore ...

Get Python GUI Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.