How to do it…

The focus of this recipe is to help you understand how frequently used commands in an application can be provided to the user via a toolbar, making them easy to access and use. You will learn to create toolbar buttons, define their shortcuts, and their icons too. To define the icons for the toolbar buttons, you will learn to create and use the resource file. The creation and execution of each toolbar button is explained very clearly step by step: 

  1. Let’s create a new application to understand the steps involved in creating a toolbar.
  2. Launch Qt Designer and create a main window-based application. You get a new application with the default menu bar.
  3. You can remove the menu bar by right-clicking on it and selecting the Remove Menu ...

Get Python GUI Programming - A Complete Reference Guide 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.