Simplest Python GUI Application - Part 1

Simplest way to create GUI Application 

Tools : PyQT5

Download PyQT5 : https://pypi.org/project/PyQt5/

If you are using the latest version of Python (my version : 3.7.2), you can install using the command

pip install pyqt5

 

Example Code :

import sys
from PyQt5.QtWidgets import QApplication, QWidget
app=QApplication(sys.argv)
root=QWidget()
root.resize(400,300)
root.setWindowTitle('First Window')
root.show()

 

Out Put :

Python GUI

Tags

Image

python GUI