Object Oriented Tkinter

preview_player
Показать описание
I'll cover how to use Tkinter using object oriented programming (classes) in Python. In this tutorial, I'll show you how to pass data from one window to another window. Each of those windows will be in a separate class. This will all be done without using global variables.
#tkinter #python #python3

0:00 Intro
0:36 Classes explanation
1:01 Demo code objective
1:54 Create a root window
2:30 Purpose of super()
6:17 Create a toplevel window
13:12 Run demo
13:32 Closure
Рекомендации по теме
Комментарии
Автор

Thats the best Channel for Infos to TkInter I found on YouTube! You are the only one who shows how to organize code in a professional way. Thank you!

mhl
Автор

I watched a few other videos from different people to clear up some of my confusion, and none of them broke it down and explained why I'm doing certain things. This video was very direct and explained what the other 5 videos failed to do. Great job and presentation!

johnlorefice
Автор

Bro you are the Bob Ross of Python Instruction!!!! Thanks! So so much!!!

hardkorebhaktaofbob
Автор

Clear and concise, and well presented. Thanks for taking the time and effort of sharing :)
Best regards.

onlyeyeno
Автор

Hi Jobin, I subscribed to your channel because of a previous video that I watched so I decided to check your other videos out, and to my surprise, this video resolved the very issue that I was having! Thank you so much! You are a great teacher.

rickyusuf
Автор

Very good job of explaining instantiating classes and passing in variables.

fredflintstone
Автор

the most effective SANA GANYAN RIN SI ROMAN HAHAHAHAHHAHA

JENSLIAMVISTA
Автор

Is there a reason you passed a master to tk.Toplevel? (genuine question of a beginner) I saw in the options that it was optionnal, so couldn't you just have passed the username as the only argument without needing the master? Thanks

andromilk
Автор

Why do you prefer class inheritence instead of composition, is there any reason that I don't know yet? I ask this question, because all component based web applications construct their components via composition further I know how difficult to maintain inheritence based approach from ancient MFC applications. But all OO tkinter courses prefer class inheritence, maybe there is a good reason. Consider how difficult to switch from Tkinter to CustomTkinter if you prefer class inheritence.

budokan
Автор

I'd like to have some more info about the frame you create in each class, why do you do that? Thanks, you have some very good content.

alanbrody
Автор

good video, exactly what i was looking for, i am going to try and implement what you demonstrated in the coding of the program i am currently building, i would have appreciated it more if you had included how to input the data instead of hard coding it in, i have a solution for that, but i am positive yours would have been much cleaner, thanks again, i am getting a positional argument error

sovereignlivingsoul
Автор

Hi Jobin, nice channel, itsd really useful for begginers like me. I am trying to make tkinter program reading an MQTT calback function to get values. Could you help explaining the basics for linking an external callback to tkinter normal loop event ?
Thanks for all

cursos.prometec
Автор

This series of videos is clearly underrated.
But in just a couple of days you passed from 460 to 570 subs... I hope you hit 1000 by dec 15th
God Speed

carlospitcher
Автор

Why pass username as an argument? You could just go self.username = master.username...

dgh