PySide2 – How to create window? Last Updated : 04 Oct, 2021 Comments Improve Suggest changes Like Article Like Report 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 QWidget 4. Increase the size of the window. 4. Show window using show() function Python3 # import system module import sys # import PySide2 modules from PySide2.QtWidgets import QApplication, QWidget # create new app app = QApplication(sys.argv) # create main window mainwindow = QWidget() # resize window to 550 * 400 mainwindow.resize(550, 400) # set title to the window frame mainwindow.setWindowTitle('GeeksForGeeks') # invoke show function mainwindow.show() # to kee in loop invoke exec_() function app.exec_() As we execute this program, a new empty window of size 550*400 will pop up on your screen with the label 'GeeksforGeeks'. Output: Comment More infoAdvertise with us Next Article PySide2 – How to create window? sarthak_ishu11 Follow Improve Article Tags : Python Python-gui Python-PySide2 Practice Tags : python Similar Reads PyQt5 - How to create semi transparent window ? When we design an application in PyQt5, the main window is used to appear by default the window is opaque, but we can make it transparent as well. we can do this by using setWindowOpacity() method which belongs to the QWidget class. Syntax : setWindowOpacity(0.5) Argument : It takes float value as a 1 min read How to make a PyGame Window? PyGame is a free and open-source cross-platform library for game development in Python. It was officially written by Pete Shinners to replace PySDL it is suitable for the creation of client-side applications and acts as standalone executables. In this article, we are going to see how to make Pygame 2 min read PYGLET - Creating window In this article we will see how we can create a window in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc on Windows, Mac OS and Linux. This library is created purely in Python and it supports many features 2 min read PYGLET â Window Activate Event In this article, we will see how we can trigger window activate event in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia, etc. A window is a "heavyweight" object occupying operating system resources. Windows may 2 min read PyQt5 â How to hide the title bar of window ? When we design the GUI (Graphical User Interface) application using PyQt5, there exist the window. A window is a (usually) rectangular portion of the display on a computer monitor that presents its contents (e.g., the contents of a directory, a text file or an image) seemingly independently of the r 2 min read How to Change the Name of a Pygame window? PyGame window is a simple window that displays our game on the window screen. By default, pygame uses "Pygame window" as its title and pygame icon as its logo for pygame window. We can use set_caption() function to change the name and set_icon() to set icon of our window. To change the name of pygam 2 min read PYGLET â Clearing Window In this article we will see how we can clear a window in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a "heavyweight" object occupying operating system resources. Windows may appear as floati 2 min read PYGLET â Setting Window Caption In this article we will see how we can set or change the window caption in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a "heavyweight" object occupying operating system resources. Windows ma 2 min read PyQt5 - How to add image in window ? In this article, we will see how to add image to a window. The basic idea of doing this is first of all loading the image using QPixmap and adding the loaded image to the Label then resizing the label according to the dimensions of the image, although the resizing part is optional. In order to use Q 2 min read Python - Create window button in GTK+ 3 GTK+ 3 is a free and open-source cross-platform widget toolkit for creating graphical user interfaces (GUIs). It is licensed under the terms of the GNU Lesser General Public License. Along with Qt, it is one of the most popular toolkits for the Wayland and X11 windowing systems. Letâs see how to cre 2 min read Like