Python and PyQt: Creating Menus, Toolbars, and Status Bars

By realpython - 2020-12-14

Description

In this step-by-step tutorial, you’ll learn how to create, customize, and use Python menus, toolbars, and status bars for creating GUI applications using PyQt.

Summary

  • Menus and toolbars can make your applications look polished and professional, presenting users with an accessible set of options, while status bars allow you to display relevant information about the application’s status.
  • Either at the top of the main window or at the top of the screen, depending on your desktop environment The final step to create a menu bar for your application is to call ._createMenuBar() from the main window’s initializer .__init__(): This method inserts the toolbar into the top toolbar area and returns the newly created toolbar.
  • ActionsContextMenu Handling the context menu event on the application’s window through contextMenuEvent() The first option is the most common and user-friendly of the two, so you’ll learn about it first.

 

Topics

  1. Coding (0.28)
  2. UX (0.25)
  3. NLP (0.16)

Similar Articles

How to Build a Python GUI Application With wxPython

By realpython - 2020-12-14

In this step-by-step tutorial, you'll learn how to create a cross-platform graphical user interface (GUI) using Python and the wxPython toolkit. A graphical user interface is an application that has b ...

An introduction to object-oriented UX and how to do it

By Medium - 2020-10-21

Object-Oriented UX (OOUX) fell into my lap a couple years ago during a brief Lunch and Learn at work. At the time, I was still getting my feet wet in UX, but I knew this OOUX stuff was on to…