Object Oriented CustomTkinter - Tkinter CustomTkinter 22

  Рет қаралды 17,530

Tkinter․com

Tkinter․com

Күн бұрын

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

Пікірлер: 32
@TkinterPython
@TkinterPython 6 ай бұрын
▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book bit.ly/45iO4OP bit.ly/3K4qlZC ▶ See More At: ✅ Subscribe To My KZbin Channel: Tkinter.com bit.ly/3Pk1By4 ▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group: 30% off with coupon code: youtube bit.ly/2GFmOBz ▶ Get The Code For This Video bit.ly/3dCzz2K
@user-rf9xr6pe6l
@user-rf9xr6pe6l 6 ай бұрын
Jj❤❤u❤yuu❤h❤hj❤jj❤j❤jñnkñnn❤nn nn n
@jamesdrinkard2751
@jamesdrinkard2751 6 ай бұрын
Thanks for posting, this fits my use case!
@TkinterPython
@TkinterPython 6 ай бұрын
Glad I could help!
@Arkaitz.M.A
@Arkaitz.M.A 4 ай бұрын
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
@TkinterPython
@TkinterPython 4 ай бұрын
Glad you enjoyed it!
@whoknowswho832
@whoknowswho832 6 ай бұрын
thank you so much was really looking for object oriented customTkinter .... hope u do more object oriented python videos
@TkinterPython
@TkinterPython 6 ай бұрын
More to come!
@karlyt
@karlyt 6 ай бұрын
Thanks for making this!
@TkinterPython
@TkinterPython 6 ай бұрын
Welcome!
@DocWerder
@DocWerder 6 ай бұрын
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
@TkinterPython
@TkinterPython 6 ай бұрын
welcome
@sethduncan4063
@sethduncan4063 6 ай бұрын
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)
@TkinterPython
@TkinterPython 6 ай бұрын
Noted :-)
@sovereignlivingsoul
@sovereignlivingsoul 4 ай бұрын
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
@TkinterPython
@TkinterPython 4 ай бұрын
awesome
@ignatiolu863
@ignatiolu863 2 ай бұрын
Hello! Thanks for the tutorial! How do I parse tabs as functions into the OOP customtkinter?
@siyabonganxumalo4574
@siyabonganxumalo4574 6 ай бұрын
Thanks John, this was pretty clear but I'm gonna stick with Functional Programming.
@user-sp3ew1rs5m
@user-sp3ew1rs5m 6 ай бұрын
same. doesn't mean that you can is that you should. functional is very much easier
@user-sp3ew1rs5m
@user-sp3ew1rs5m 6 ай бұрын
also, it doesn't make any sense to use oop on that ctk, unless if it is for the algo or program's logic
@TkinterPython
@TkinterPython 6 ай бұрын
Ha, me too!
@winoucdab
@winoucdab 6 ай бұрын
Hello, Do you know if there is a method in CTK that does same as .update() in tkinter?
@Codemycom
@Codemycom 6 ай бұрын
that should still work with customtkinter...right? It's all still tkinter
@winoucdab
@winoucdab 6 ай бұрын
@@Codemycom yes, thanks you for the fast answer =)
@charlvantonder5247
@charlvantonder5247 6 ай бұрын
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
@TkinterPython
@TkinterPython 6 ай бұрын
I gave my views in this video. OOP is appropriate when it's appropriate and not otherwise. Only you can determine that :-) Personally I might make a different class for each menu... next week I'm doing a video on animations that might be useful to you...
@charlvantonder5247
@charlvantonder5247 6 ай бұрын
Awesome! Thanks so much. Will keep an eye out for the video. Thanks Man!
@muhammedyusufaltkardes2494
@muhammedyusufaltkardes2494 6 ай бұрын
Why is there no Listbox widget in the CustomTkinter ?
@Codemycom
@Codemycom 6 ай бұрын
no clue
@terry_____1408
@terry_____1408 3 ай бұрын
I think you're talking about the combobox.
@VicRattlehead-zq6js
@VicRattlehead-zq6js 6 ай бұрын
John Elderly, you are awesome
@TkinterPython
@TkinterPython 6 ай бұрын
Thanks!
Widget Animation - Tkinter CustomTkinter 23
15:43
Tkinter․com
Рет қаралды 9 М.
Intro To Object Oriented Tkinter - Object Oriented Tkinter 1
16:42
Tkinter․com
Рет қаралды 17 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 87 МЛН
Using tkinter with classes
28:23
Atlas
Рет қаралды 57 М.
Popup Boxes - Object Oriented Tkinter 2
8:08
Tkinter․com
Рет қаралды 1,7 М.
File Dialog Boxes - Object Oriented Tkinter 3
10:15
Tkinter․com
Рет қаралды 2 М.
Don't use Tkinter!
39:53
Jason Codes Qt
Рет қаралды 10 М.
Entry Boxes for Text - Intro To Tkinter 2
14:31
Tkinter․com
Рет қаралды 1,1 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 285 М.
Let's Build A Calculator - Object Oriented Tkinter 4
19:02
Tkinter․com
Рет қаралды 15 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 157 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН