4 Building Desktop Applications

WHAT YOU LEARN IN THIS CHAPTER:    

  • How to structure and build command-line applications
  • How to enrich command-line applications
  • How to structure and build GUI applications with Tkinter
  • How to enrich Tkinter applications with Tix and ttk
  • How third-party frameworks extend your GUI options
  • How to localize and internationalize your applications

WROX.COM DOWNLOADS FOR THIS CHAPTER

For this chapter the wrox.com code downloads are found at www.wrox.com/go/pythonprojects on the Download Code tab. The code is in the Chapter 4 download, called Chapter4.zip, and individually named according to the names throughout the chapter.

Python is a general-purpose programming language. That means it can be used for many different types of programs. You have already seen how it can be used as a scripting language to glue applications together, as well as its use in managing data persistence and access. You now look at how it can be used to build complete desktop applications.

Desktop applications are the mainstay of personal computing. They include such standard facilities as word-processing programs, spreadsheets, and even games. They often function entirely on the desktop, with no network access required. At other times they may be inherently network oriented, as is the case with a web browser or a client–server database application. The distinguishing feature is that the bulk of the functionality is executed on the local PC.

Desktop applications can have a graphical ...

Get Python Projects 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.