Тёмный

ToDo List GUI App - PyQt5 GUI Thursdays #13 

Codemy.com
Подписаться 234 тыс.
Просмотров 24 тыс.
50% 1

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.

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@Codemycom
@Codemycom 3 года назад
▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My RU-vid 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 3 года назад
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 3 года назад
Thanks!
@robodev6033
@robodev6033 9 месяцев назад
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 9 месяцев назад
Glad to hear it!
@poduck2
@poduck2 2 года назад
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.
@aasthon_yt
@aasthon_yt Год назад
Hi, im working on pyqt4, im getting error on currentRow(), its saying Attribute QlineEdit error, can you help me in it .
@inteliconn995
@inteliconn995 Год назад
Thanks!
@Codemycom
@Codemycom Год назад
Welcome!
@b391i
@b391i 3 года назад
Good Job 👍
@Codemycom
@Codemycom 3 года назад
Thanks!
@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!
@jiakai7254
@jiakai7254 Год назад
to avoid adding empty tasks, add in " if item: " under add_task function
@juchka5681
@juchka5681 2 года назад
Очень помогло, огромное вам спасибо )))
@christressler3857
@christressler3857 Год назад
Ok but how do you save that list as a variable?
@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.
@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
@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
@omermertbaloglu8900
@omermertbaloglu8900 2 года назад
I really really understand that is capital L, I swear 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)
@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 :)
@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 :-)
@shreyas5675
@shreyas5675 3 года назад
Pls make a video on working with multiple windows in PyQt5
@Codemycom
@Codemycom 3 года назад
noted
@itslegenddark1808
@itslegenddark1808 3 года назад
Thanks
@Codemycom
@Codemycom 3 года назад
Welcome
@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...
@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.
@seanli75
@seanli75 3 года назад
can I see the whole file?
@Codemycom
@Codemycom 3 года назад
Code in the comments
@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
@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
@meliodasdali2729
@meliodasdali2729 Месяц назад
And remember it's a lower case l not a capital case L
@Codemycom
@Codemycom Месяц назад
lol yup
Далее
Python GUI Development With PySimpleGUI
15:15
Просмотров 1 млн
Как вам наши образы?🥰🥰🤍🤍
00:10
Working With Qt Designer's UI Files And PyQt
19:17
Просмотров 16 тыс.
This is Why Programming Is Hard For you
10:48
Просмотров 842 тыс.
How to store data with Python and SQLite3
9:15
Просмотров 44 тыс.
Python GUI Development Using PyQt5
22:08
Просмотров 195 тыс.
PyQt5 Programs | Sidebar example of application
25:08
I Used Code to Go Viral on Social Media
8:54
Просмотров 221 тыс.
PyQt5 Splash Screen tutorial [PyQt5 GUI tutorial]
9:13