Chapter 3. Look and Feel Customization

In this chapter, we will customize our GUI using Python 3:

  • Creating message boxes – information, warning, and error
  • How to create independent message boxes
  • How to create the title of a tkinter window form
  • Changing the icon of the main root window
  • Using a spin box control
  • Relief, sunken, and raised appearance of widgets
  • Creating tooltips using Python
  • How to use the canvas widget

Introduction

In this chapter, we will customize some of the widgets in our GUI by changing some of their properties. We are also introducing a few new widgets tkinter offers us.

The Creating tooltips using Python recipe will create a ToolTip OOP-style class, which will be a part of the one single Python module we have been using up to now.

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.