Hello Python developer!
Do you want to code a window base GUI(Graphic User Interface) app like below image?
If you are 'Yes', let's learn about 'PyQt' library(a set of modules) for GUI programming.
'PyQt' made by Riverbank Computing and you can find latest news and more details about PyQt from the following link.
PyQt site : https://riverbankcomputing.com/software/pyqt/
For installation of PyQt library at your PC, please type following command in Windows command prompt.
pip install pyqt5
Are you ready for the first PyQt coding?
Let's input following code for PyQt sample and run it!
import sys
from PyQt5.QtWidgets import *
app = QApplication(sys.argv)
label = QLabel(" Hello GUI by Python! ")
label.show()
app.exec_()
Git hub link : https://github.com/Cevastian/Python-Developer-start-today/blob/master/PyQt_sample_001.py
Result
Now you successfully coded the first Python GUI app, good job!
See you on the next Python course. Please take care and coding everyday!
No comments:
Post a Comment