#python #pythonprogramming #pyqt5
00:00:00 intro
00:00:12 pip install PyQt5
00:00:46 imports
00:01:35 boiler-plate code
00:05:26 .setWindowTitle()
00:05:57 .setGeometry()
00:07:28 icons
PyQt5 introduction
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtGui import QIcon
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("My cool first GUI")
self.setGeometry(700, 300, 500, 500)
#self.setWindowIcon(QIcon("profile_pic.jpg"))
def main():
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
if _name_ == "__main__":
main()
On this page of the site you can watch the video online Python PyQt5 setup a basic GUI Application! 🖥️ with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 23 July 2024, share the link with friends and acquaintances, this video has already been watched 11,199 times on youtube and it was liked by 353 viewers. Enjoy your viewing!