How it works...
As you can see in callTabWidget.pyw, the necessary modules are imported. The MyForm class is created and inherits from the base class, QDialog. The default constructor for QDialog is invoked.
An application object is created with the name app through the QApplication() method. Every PyQt5 application must create an application object. The sys.argv parameter is passed to the QApplication() method while creating the application object. The sys.argv parameter contains a list of arguments from the command line and helps in passing and controlling the startup attributes of a script. After this, an instance of the MyForm class is created with the name w. The show() method is invoked on the instance, which will display the widgets ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access