Book Image

Tkinter GUI Programming by Example

Book Image

Tkinter GUI Programming by Example

Overview of this book

Tkinter is a modular, cross-platform application development toolkit for Python. When developing GUI-rich applications, the most important choices are which programming language(s) and which GUI framework to use. Python and Tkinter prove to be a great combination. This book will get you familiar with Tkinter by having you create fun and interactive projects. These projects have varying degrees of complexity. We'll start with a simple project, where you'll learn the fundamentals of GUI programming and the basics of working with a Tkinter application. After getting the basics right, we'll move on to creating a project of slightly increased complexity, such as a highly customizable Python editor. In the next project, we'll crank up the complexity level to create an instant messaging app. Toward the end, we'll discuss various ways of packaging our applications so that they can be shared and installed on other machines without the user having to learn how to install and run Python programs.
Table of Contents (18 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Summary


With the end of this chapter, the ttk set of widgets has now been added to our arsenal of tools, and we know why they would be used (to capture a more native feel) and how to style them using a Style object. Learning about style inheritance will enable us to better plan how we go about styling ttk widgets in a larger application.

We have also had a look at the styling options of the built-in widgets should we prefer to stick with those for their ease of use.

We have had a brief look at how Tkinter handles a large body of formatted text with the Text widget.  We've previewed a couple of configurations and are ready to take a deeper dive into this widget in the next chapter, learning how to style and search this widget.

The built-in event system in Tkinter has been explored, allowing us to listen for keyboard and mouse input and execute Python code in response. We also understand that widgets may have their own default responses to some input, but we can overwrite them using the break...