O'Reilly logo

Tkinter GUI Programming by Example by David Love

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Highly Customizable Python Editor

The next project we will be undertaking is a smart text editor for writing Python code. This text editor will have all of the features you would normally expect a text editor to have, including line numbers, a top menu bar, a right-click menu, various customizable key-bindings, a find/replace window, configurable syntax highlighting, and more!

Our first iteration will set up the foundations for our editor. We will start with the basic layout, some of the least complicated and familiar widgets, some key-bindings, and the creation of our find window.

In this chapter, we will cover:

  • Using themed ttk widgets instead of regular tk ones
  • Styling tk and ttk widgets
  • Handling a large amount of text with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required