Using tkinter with classes

preview_player
Показать описание
This video will cover how to create complex tkinter layouts using all the layout methods (pack + grid + place) along with classes to organise them well.

Code:
Рекомендации по теме
Комментарии
Автор

I don't understand how you only have 5.88k subscribers! This is so well explained, which for these tutorials is rare, thank you so much!

jayramsey
Автор

This tutorial is way better than the others. You are giving comparisons (unlike other tutorials) which is what we need. Thank you.

TV-ehfi
Автор

This was an awesome explanation as you did a side by side with the NON class code. Really appreciate it

mikeniemotka
Автор

Amazing. Finally got to understand how classes work. Your tutorials are the best, thank you for doing them. ❤

doktor.paichiwo
Автор

I've watched this video at least twice and reproduced the content. It's an outstanding example of using OOP and tk. Thanks!

TechWazza
Автор

These are fantastic. Dude, youre an excellent teacher, pointing out the right things and making it so understandable. Much appreciated

larsondavis
Автор

Standing ovation, Sir!👏 I have watched all these (your) videos from the first one and will continue to the last one (#40) because they are so good! My deepest congratulations, inspiring!

FernandoSantos-onry
Автор

Bro, this is amazing! One of the best well-explained videos on class-based apps. I am using this approach, but do have doubts sometimes on how to organize the code properly. Thank you for making this easier!

rickyusuf
Автор

Amazing, finally someone creating a good structure and a pedagogic way. Congrats!

deeplazydev
Автор

wooow I can't speak, before this video I had a lot of problems understanding the classes, and I had no idea how and why should I use them but know you opened my mind and make me see their importance and make me understand them easily.... thank you very much from all my heart ❤ .

drvermillion_sama
Автор

Thank you, this is superb. Very clearly explained, and exactly what i was looking for. The only difficulty I had was that many of my labels have text that changes as part of the program, so I had to call mainloop using the object (instance), rather than from within the class constructor. I can't see any way around that, but if anyone reading this has any thoughts I'd love to hear them. Thanks again for such a clear and detailed explanation.

strangerist
Автор

These are indeed worth in gold.. Youtube algorithm sucks..

mayankb
Автор

This ist the BEST explanation i found on Youtube.

simonkroschel
Автор

I get new understanding of tkinter, thanks you❤

chanero-uz
Автор

Some super helpful videos, excellent quality! Any chance you could make a video talking about passing information between the frames? Eg, when a button inside Main frame is pressed, it should update something inside the Entry frame?

In my particualr case - I have a class which contains a matplotlib canvas and I have a few classes defining different frames which contains some buttons and entries. I want the matplotlib canvas to be updated based on the entries and button pressed in those different frames

sustrasbk
Автор

the best video on this topic. you deserve way more subscribers

rakesh.a.c
Автор

Sir i have a question on the main frame i don't under why you make 2 frames in side the other frame.?

mlfelonzo
Автор

The big problem with abstraction is that, you can't really do it from the get-go most of the time. If someone tries to get started with a GUI and go straight into abstracting first, and building functions second, they'll have a hard time debugging and a hard time when they get an idea while building and now they have to fit it in somewhere, or something didn't play out as expected. The sad truth is that, you kind of have to make a mess first, before doing it clean. After all, you can't "clean" unless it's dirty.

valentinrafael
Автор

It works perfectly on Windows 7 but the red label will not display on Linux Mint 20.3

My mistake!
In the class Menu(ttk.Frame):
Def __init__(self, parent):
I entered __init__ as __int__
This occurred using one of the built-in features of PyCharm.
An easy mistake to make, but not easy to spot (with my eyesight).
Many thanks for the videos!

notanumber-fymp
Автор

Very clear and easy to understand videos, easiest I have found to follow and comprehend. Would you continue with the series by adding commands to the buttons and then splitting the parts into separate modules or .py files. I am trying to create a sqlite database app with a lot of tables and table editing windows but am struggling as it gets too complex and I have been unable to split the modules while maintaining functionality. It a model train/Item inventory database Thank you for your videos!

jbt