Python PyQt5 setup a basic GUI Application! 🖥️

preview_player
Показать описание
#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__()

def main():
window = MainWindow()

if __name__ == "__main__":
main()
Рекомендации по теме
Комментарии
Автор

# 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)


def main():
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())

if ___name___ == "__main__":
main()

BroCodez
Автор

I don't know why your vdos aren't getting views. I absolutely love your tutorial it's been almost 2 years since I was following u. I can't see your views so low 😢.
Amazing tutorial
Thank You

bhaveshganolia
Автор

I’m still not getting notifications for this channel from YouTube. If that is happening to everyone else, that explains the fall off of viewership.

gregabits
Автор

just wanted to let you know you are actually a legend. please keep doing what you're doing

pandaijo
Автор

Oh myyy, i waited so for GUI tutorials... I'm waiting for more episodes!

kenner__
Автор

happy to see that you are still posting new videos

AstorasDovlias
Автор

Good job bruv, can't wait for a next lesson

mirasmatras
Автор

Awesome 🎉 it will be best gui tutorial ever

mohdalghoul
Автор

Oh please make more about pyqt. You’re the best ever

tarindell
Автор

bro can you do Django or flask tutorial in the future?

jereinnico
Автор

you better not keep us waiting on GUIs bro, that's just some good stuff from a guy who's straight to the point

nimamasoumi
Автор

Please can you make a gui application in c++ because from you I understood how c++ works

siksmore
Автор

Why PyQt5 instead of PyQt6 or PySide6? After so many years of 6 being available I would assume that, so if 5 is chosen on purpose my question is why?
(OK, I see Qt 6 is only 3.5 years old, I was assuming it was even older than that)

erikjohnson
Автор

Pls any help
Mine shows errror when i try to install yhe PyQt5

zakariaabdulrauf
Автор

ok I'm going to attempt to make Buckshot Roulette

though I'm wanting to ask you is it possible to code a random number of buck shots and random types
like say round 1 6 buck shots 4 blank 2 real or any random amounts

so basically, I wonder is it possible to make a function to do random ammo 2 - 8 count and whatever ammo you get is random for number of blanks and live rounds, then once the amount hits 0 it makes a new set

there's items and health

seth
Автор

POV you make games so you just use pay game and your own custom code to make a gui with buttons

Wojtek_
Автор

I try with py simpleGUI but is eay more difficult than this ( im portuguese)

gm
Автор

Its painful to see you work so hard but don't get enough views 😢, are you financially stable???

frostyboy