PyQt5 Tutorial - Setup and a Basic GUI Application

preview_player
Показать описание
PyQt5 is a python 3 module that allows for rapid development of GUI applications using its built in program Qt-Designer. PyQt5 runs on all operating systems which means all of the code you write will scale. This tutorial series will focus on the basics of PyQt and creating useable GUI's. In this video I discuss how to download and install pyqt for windows and setup a basic gui application.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
- Tech With Tim
- Python Tutorials
- PyQt5 Tutorial
- Python PyQt5 Tutorial
- PyQt5 Designer

#python #pyqt5 #qtdesigner
Рекомендации по теме
Комментарии
Автор

It's really funny because recently I've registered to Skillshare to learn PyQt5 and now I find this tutorial which explain it much better and for free.
Thank you.

pugo
Автор

For those like me who could not understand how to build the program, do this: open command line in the folder where you place your .py file and run python <name>.py build

imacoder
Автор

4:27 That's not what passing `sys.argv` is doing. It's passing the command line arguments to the Qt Application. `sys.argv` are the command line arguments in python. sys.argv[0] is the name of your program, sys.argv[1] is the first command line argument, sys.argv[2] is the second, etc. You can use those in QApplication however you want, or not at all.

In Qt C++, you pass in (int argc, char** argv), which is the same thing, argv being the command line arguments (char**, because it is a pointer to a pointer of chars), (argv for argument values), and argc being how many arguments (argc for argument count), these come from the optional C/C++ main function paramaters (int argc, char** argv). (char** argv can also be written as char* argv[] or in other words, a pointer to char arrays, either way, they are the same thing in C/C++).

In Qt Java, you pass in args from main(String args[]) which are the command line arguments in java (an array of strings).

I suspect it's the same concept in Qt for all languages that have Qt.

islandcave
Автор

Thanks for sharing. I'm developing NLP tools for my internship and I wanted to dabble into GUIs so that I can make neat little proof of concept programs.
Please keep doing what you're doing.

kapildeshmukh
Автор

they missed their chance to call the module QtPy

TwenOalley
Автор

@00:04:36 sys.argv is a list of command parameters to the program. So for example if you type python program.py hello world, your sys.argv will be a list like [ "path/to/python", "program.py", "hello", "world" ]

albin
Автор

I'm just starting to learn PyQt5 and this course looks promising! Nice job!

the-name-is-max
Автор

As a German I looked at a German Tutorial of course first - but I didn´t work. So I came here and hallelujah. - Captain I will sail with you all the Seven Seas.

wernerw.
Автор

When it comes to actually teaching for understanding your videos are the best ive come across its one thing to just code along but to actually understand it is a different matter.

chaddhinds
Автор

I love your more faced paced teaching style, its much easier to understand and learning is much faster this way. Most python tutorials either treat you like an absolute beginner, or treat you like you know everything, this is a good balance, and i absolutely love this channel!!!

+1 Subscriber

soupnoodles
Автор

First thank you for your time and effort, second can you do more video about GUI for making program interact with internet.Thank you.

elprquex
Автор

Hey Dud! Firstly, I learn English and design with python. I researched on YouTube and I found you. You are very very good teaching Python. Well, I develop my English because of you as well as I learn new Python skills. Thank you bro! I want to meet you and talk about python and programing.

profiteroldr
Автор

Great job as always Tim!

In the future, it would be great to show how the window can save the entries to a database or something. Maybe I'm getting ahead of myself though, LOL.

delbandtaha
Автор

Two words : THANK YOU !

Looks much better than Tkinter.

Clement-xyiv
Автор

I think the sys.argv is to make the program to take CLI arguments.
QApplication() requires a list anyway, so just empty list like QApplication([]) works too.

justinstar
Автор

Great! Very nice video. ☺️
If you would cover database connectivity with the implementation of Pyqt5, it would be great. Hope to see interesting stuffs.!

arpitagec
Автор

Exactly what I needed for my new project in Bioinformatics! Amazing stuff dude! Will definitely donate a bit later when I have some extra money. Will also suggest your videos on my new channel.

rebelScience
Автор

@TechWithTim - 4:22 - = sys.argv are the arguments given while starting the program in commandline. For example:
"python yourfile.py argument1 arg2 ..."
So thats why if you print out sys.argv it is mostly a list of nothing or just the filename... Sry for my bad english

fadop
Автор

coming from java this is so much easier thank the lord. been learning java in university, but now im making a personal project so i am trying to learn python

Furiac.
Автор

Really appreciate your efforts for the content and the quality of the video. Huge thumps up and subscribed.
Keep up the good work.

barunbasnet