Popular Posts

Thursday, February 23, 2023

PyQt - Python GUI module

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! ")


Can you see the small window with " Hello GUI by Python! " Text? Congratulations!
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

Python - Web crawling exercises

Hello Python developer! How are you? Hope you've been good and had wonderful time with Python. There are 10 Python requests module exerc...