ToDo List GUI App - PyQt5 GUI Thursdays #13

  Рет қаралды 23,352

Codemy.com

Codemy.com

3 жыл бұрын

In this video we'll build a fun little ToDo List GUI app with PyQT5, the PyQT5 Designer, and Python.
In this app you'll be able to add an item to your todo list, delete items from the list, and clear the entire list.
We'll build the GUI for this app with the Designer. Then we'll convert the designer UI file to Python and add all the functions to add items, remove items, and clear the screen.

Пікірлер: 59
@Codemycom
@Codemycom 3 жыл бұрын
▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My KZbin Channel: bit.ly/3sHT8dc bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code: bit.ly/394NQ3R
@abrarmulla1196
@abrarmulla1196 3 жыл бұрын
why is this channel so under-rated.
@Codemycom
@Codemycom 3 жыл бұрын
Is it? Tell your friends :-p
@TheJacklwilliams
@TheJacklwilliams 2 жыл бұрын
I'd say because of things like he does in this tutorial. If you view most any other tutorial on the subject, no one creates a program in the ui source file generated by designer because that's not the way it's supposed to be done. I can't state further because I haven't looked at his other stuff but, following standards and convention, is important. Not a big deal to seasoned developers because they already know enough to understand. However, I'd also state, a seasoned developer is not watching a beginning guide to developing QT apps with designer.
@TheJacklwilliams
@TheJacklwilliams 2 жыл бұрын
@Debaditya Nath bruh, that's just the issue... don't start out the wrong way. nbd, i get it, just personal preference. do it right, or, don't.
@RyanDanielG
@RyanDanielG 2 жыл бұрын
Great job, great python tutorials, great lessons FEED that algorithm if you want more like this guys. Theres not any other ppl on youtube doing this so well
@Codemycom
@Codemycom 2 жыл бұрын
Thanks!
@robodev6033
@robodev6033 8 ай бұрын
This is very helpful I am working on with a 3D printer GUI and this video help me out on how to show the files list in the cool way. Thank you so much.
@Codemycom
@Codemycom 8 ай бұрын
Glad to hear it!
@bobdoe5218
@bobdoe5218 3 жыл бұрын
Hey! I like your channel. Keep it up! :)
@labialkosta261
@labialkosta261 3 жыл бұрын
Great tuto thanks for sharing
@Codemycom
@Codemycom 3 жыл бұрын
Thanks for watching!
@juchka5681
@juchka5681 2 жыл бұрын
Очень помогло, огромное вам спасибо )))
@b391i
@b391i 3 жыл бұрын
Good Job 👍
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@poduck2
@poduck2 Жыл бұрын
You should probably be subclassing the Ui_MainWindow class, instead of editing the file directly, in case one wants to edit and change the layout in designer.
@inteliconn995
@inteliconn995 Жыл бұрын
Thanks!
@Codemycom
@Codemycom Жыл бұрын
Welcome!
@satanthegamer3969
@satanthegamer3969 3 жыл бұрын
Could you direct us to a resource where we can read and learn even more in-depth about the syntax and logic going on behind PyqQt5? For example, I am thinking about the calls to __init__ and self. And how the code structure changed from when we were writing it ourselves versus when we convert a ui file.
@aasthon_yt
@aasthon_yt 11 ай бұрын
Hi, im working on pyqt4, im getting error on currentRow(), its saying Attribute QlineEdit error, can you help me in it .
@jiakai7254
@jiakai7254 Жыл бұрын
to avoid adding empty tasks, add in " if item: " under add_task function
@ianhagan7656
@ianhagan7656 3 жыл бұрын
John, Can you do a short video on using QTDesigner to create a MainWindow with a Layout Manager (eg QHBoxLayout) that resizes when the window is resized. I am damned if I can see how to do it. Thanks.
@Codemycom
@Codemycom 3 жыл бұрын
Noted :-)
@christressler3857
@christressler3857 Жыл бұрын
Ok but how do you save that list as a variable?
@bobdoe5218
@bobdoe5218 3 жыл бұрын
Nice! Can you do a tutorial on Object Oriented Programming? Thanks!
@Codemycom
@Codemycom 3 жыл бұрын
might do that in the future...I have a python course that teaches the basics of it already
@itamarribeiro8865
@itamarribeiro8865 3 жыл бұрын
Something weird, when you come back to qt designer and change any widget property or something, it replaces all the code and kill the events you have created
@Codemycom
@Codemycom 3 жыл бұрын
Well yeah, you're overwriting the file when you go back and change it... rename it something else the second time
@itslegenddark1808
@itslegenddark1808 3 жыл бұрын
Thanks
@Codemycom
@Codemycom 3 жыл бұрын
Welcome
@omermertbaloglu8900
@omermertbaloglu8900 2 жыл бұрын
I really really understand that is capital L, I swear it.
@codewithraiju1424
@codewithraiju1424 3 жыл бұрын
Hello sir.. We can get buttons same as of pyqt in tkinter by just using ttk.Button instead of Button
@Codemycom
@Codemycom 3 жыл бұрын
No, those aren't the same buttons
@codewithraiju1424
@codewithraiju1424 3 жыл бұрын
@@Codemycom they are sir.. Just check once.. Dot this once for your little fan sir..
@Codemycom
@Codemycom 3 жыл бұрын
@@codewithraiju1424 No they aren't. Those are ttk buttons. pyqt5 doesnt use ttk
@TheJacklwilliams
@TheJacklwilliams 2 жыл бұрын
@@codewithraiju1424 tKinter is very limited and lacking in the depth of code base compared to Qt. Look into it, you'll find the two are very different. Tk is fine for small projects that require basic functionality but when writing substantial programs that require cross platform portability with a wide range of functionality, Qt is much more suited to the task. And, no matter but "Do this once for your little fan" is just plain weird.
@codewithraiju1424
@codewithraiju1424 2 жыл бұрын
@@TheJacklwilliams Yeah you are right, qt is much better than tkinter, and I should not have used "do it for your little fan".. But believe me, we can get the system buttons in tkinter by just using ttk.Button.. I have made several projects in tkinter.. But I felt that it is not so good, then I leanred java swing, it is great for huge projects and is extremely good, android studio, intellij, pycharm are written in java swing.. Now I see that altough it is great for desktop apps, java swing is not in demand, although I am not learning for money😂.. But still it feels good when the framework is popular, has an active community, and and the developers of that framework make updates in it.. So now I have started android dev using flutter framework...
@shreyas5675
@shreyas5675 3 жыл бұрын
Pls make a video on working with multiple windows in PyQt5
@Codemycom
@Codemycom 3 жыл бұрын
noted
@shreyas5675
@shreyas5675 3 жыл бұрын
I don't know why but when I click the add item button, the shell window restarts itself thus closing the QtWindow(Can anyone solve this issue ?)
@Codemycom
@Codemycom 3 жыл бұрын
You have a typo in your code
@laurentreynaud4404
@laurentreynaud4404 3 жыл бұрын
Hello ! Same problem because in QtDesigner the widget is List Widget and no List View 😉
@satanthegamer3969
@satanthegamer3969 3 жыл бұрын
Post the code and I will try my best to help.
@shreyas5675
@shreyas5675 3 жыл бұрын
@@satanthegamer3969 I solved the problem. Anyways thanks for the reply :)
@davidgomez-rj1xw
@davidgomez-rj1xw 2 жыл бұрын
I'm receiving this error message 'QListView' object has no attribute 'addItem'
@Codemycom
@Codemycom 2 жыл бұрын
What did you do differently from the video? I has to be exact.
@aakashthapa2839
@aakashthapa2839 2 жыл бұрын
same problem
@seanli75
@seanli75 3 жыл бұрын
can I see the whole file?
@Codemycom
@Codemycom 3 жыл бұрын
Code in the comments
@dellsantiago8108
@dellsantiago8108 3 жыл бұрын
Sir when are you getting back the python and excel video
@Codemycom
@Codemycom 3 жыл бұрын
Never, you have to purchase that course from codemy.com to watch the rest of it.
@afghanistaninternational9282
@afghanistaninternational9282 2 жыл бұрын
sir when i click add button i get an error ''Qlistview object has no attribute addItem' thanks waiting for your nice reply
@Codemycom
@Codemycom 2 жыл бұрын
Rewatch the videos, compare your code to the video, discover what you did wrong.
@lvox9596
@lvox9596 Жыл бұрын
i am also getting the same error... it says that there isn't any function defined as "add_it()", but I have defined it... exactly as in the video...
@jiakai7254
@jiakai7254 Жыл бұрын
same error but u need to add objectname = object (e.g. self.taskbox_lineEdit = self.lineEdit)
@halitcskaya8711
@halitcskaya8711 Жыл бұрын
Dude looks like Walter White.
@Codemycom
@Codemycom Жыл бұрын
lol
@TheJacklwilliams
@TheJacklwilliams 2 жыл бұрын
Ok, I started late tonight. Stopping here (where you start adding the function to the todo.py file. I have to ask, and I'm hoping you answer. The .py file has boilerplate at the top that states: # Form implementation generated from reading ui file 'todo.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! And you, are adding in, a function, etc...etc...etc... Oddly you had a main function when you scrolled down. Mine, does NOT have that function. It ends with the retranslateUI method. So, I have to ask, why are you doing it this way instead of writing another .py file and then importing this file at the start of that, and building classes/etc....? Apologies but so far any PyQt5 designer tut's that I've done typically employ that method as opposed to what you are doing? Per the statement, if I go back now and edit the gui in designer, re-generate my py file from the .ui file, won't I blow all your changes out of the water? Thanks!
@Codemycom
@Codemycom 2 жыл бұрын
we do it that way later in the playlist
Add A Database To Our ToDo List part 1 - PyQt5 GUI Thursdays #14
14:49
Working With Qt Designer's UI Files And PyQt
19:17
DistroTube
Рет қаралды 16 М.
UNO!
00:18
БРУНО
Рет қаралды 3,5 МЛН
Я не голоден
01:00
К-Media
Рет қаралды 8 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 26 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
Create Your Own Browser Using Python | Python Project | PyQt5
28:32
Programming Hero
Рет қаралды 461 М.
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 63 М.
How To Load PYQT5 Designer UI File - PyQt5 GUI Thursdays #27
15:29
creating tables in tkinter with the treeview widget
14:44
Python GUI Development Using PyQt5
22:08
NeuralNine
Рет қаралды 191 М.
How to store data with Python and SQLite3
9:15
John Watson Rooney
Рет қаралды 43 М.
UNO!
00:18
БРУНО
Рет қаралды 3,5 МЛН