O'Reilly logo

Introduction to Python® Programming and Developing GUI Applications with PyQT by B. M. Harwani

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

Chapter 10. Menus and Toolbars

Menus and toolbars are handy options for initiating any task in an application.

This chapter covers the following:

  • Creating a menu

  • Creating a toolbar

  • Creating a resource file

  • Creating dockable windows with the Dock widget

  • Displaying a large volume of information with the Tab widget

  • Working with the Style Sheet Editor

  • Converting a Tab widget into a Tool Box or Stacked widget

Let’s begin the chapter with menus.

Understanding Menus

A menu bar consists of several menus, each of which consists of several entries, which in turn may include submenu entries. The Main Window template of Qt Designer provides a main application window that displays a menu bar and a toolbar by default. The default menu bar appears as shown in Figure 10.1 ...

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