Object Oriented CustomTkinter - Tkinter CustomTkinter 22

preview_player
Показать описание
In this video we'll learn how to use Object Oriented Programming with CustomTkinter and Python.

Class Based Programming, as opposed to the Functional Based Programming we usually do, is something a lot of people are interested in.

In this video I'll show you how to use Class Based Object Oriented Programming with CustomTkinter and Tkinter in general.

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:30 - Build Function Based App
3:07 - Convert To Class Based
3:26 - Create App Class
4:55 - Push Settings into Init
5:42 - Add Widgets To Init
6:33 - Clear Function
8:10 - Define App and Mainloop
9:15 - Clear Error
9:50 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book
▶ See More At: ✅ Subscribe To My YouTube Channel:
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
▶ Get The Code For This Video

TkinterPython
Автор

thank you so much was really looking for object oriented customTkinter .... hope u do more object oriented python videos

whoknowswho
Автор

oop make sense when you got much different things and yo want to keep them separated, and init them in diferent ways. Or maybe if yo want a class heritage to another class.

Great video. Simple and direct to what matters in customTkinter

Arkaitz.M.A
Автор

I like the way you put that, it depends on the app! My current project would be very complicated if I built it functionally as it is keeping track of and manipulating a fair amount of data, but by and large I don’t find classes to be worth the effort! Thanks for the video!

If you ever get time I would love to see an example of saving state of an application in your style (something I struggle with)

sethduncan
Автор

Hi John, thanks very much for the video. For me it is much more modular, when I'm using object oriented programming. Also I can mix up (in a limited way) my pyside2 python code. For this it is very helpful for me. Thanks a lot

DocWerder
Автор

i like oop, i try to use it with my php often, and i agree with you as far as, is it necessary, really just a matter of choice or preference in programming methodology, sort of sass or css, but it is handy to know it can be done, one more video in the series, looks like i became a member, thanks John, i like your way of presenting and i have to advise you, i will be incorporating a similar style when i start my video series on building web pages

sovereignlivingsoul
Автор

Thanks John, this was pretty clear but I'm gonna stick with Functional Programming.

siyabonganxumalo
Автор

Thanks for posting, this fits my use case!

jamesdrinkard
Автор

Hello! Thanks for the tutorial! How do I parse tabs as functions into the OOP customtkinter?

ignatiolu
Автор

Hi John,

Thanks for this video. I've been battling now for weeks to create my GUI. Some say, you should OOP. What would your opinion be? I am making use of frames with the menu on the left side of the screen. These menu items are listed underneath each other.

Basically it would look like this:

> My Workspace
>Data
>Administration

Let's say they would select data, these menu options would then change based upon the user selection. For example:
>Import

The code is becomming somewhat lengthy, how would you proceed in this scenario? Would you use different classes\functions for each menu, or create different files for each menu? With the idea to make the code more readable and organized? I am not entirely sure. I am still somewhat a python noob :)

Looking forward to hearing from you.

Thanks Man
Kind Regards
Charl

charlvantonder
Автор

Hello,
Do you know if there is a method in CTK that does same as .update() in tkinter?

winoucdab
Автор

Why is there no Listbox widget in the CustomTkinter ?

muhammedyusufaltkardes
welcome to shbcf.ru