PySide2 is one of the most famous libraries in python for building GUI applications. In this article, we will build an empty window using PySide2 Library.
Steps to create empty window : 1. Import PySide2 in your code 2. Create QApplication object 3. Create object for QWideget 4. Increase the size of the window. 4. Show window using show() function
As we execute this program, a new empty window of size 550*400 will pop up on your screen with a label ‘GeeksforGeeks’.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.