Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Python PyQt5 setup a basic GUI Application! 🖥️

Video information, playback and saved actions.

Python PyQt5 setup a basic GUI Application! 🖥️

Description: #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() Close description
      
Videos related to "Python PyQt5 setup a basic GUI Application! 🖥️"

Related videos are temporarily unavailable.

Try again, or come back later.