No video

Switching Between Light and Dark Mode - Tkinter CustomTkinter 19

  Рет қаралды 4,106

Tkinter․com

Tkinter․com

Күн бұрын

In this video I'll show you how to switch between light and dark mode programatically with CustomTkinter and Python.
Most people pick a mode, dark or light, when coding their project. But you can switch in real time from your app too!
I'll show you how to do it in this video...
#tkinter #codemy #JohnElder
Timecodes
0:00​​ - Introduction
1:40 - Create Entry Box
2:08 - Create Button
2:41 - Create Change Function
3:45 - Light Dark Switching
5:20 - Update Entry Box Text
6:08 - Color Theme Switching?
8:45 - Conclusion

Пікірлер: 5
@TkinterPython
@TkinterPython 7 ай бұрын
▶ 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
@79chtom
@79chtom 3 ай бұрын
I used "get_appearence_mode" instead of using the construct with an own variable: def toggle_dark_light(): if customtkinter.get_appearance_mode() == "Dark": customtkinter.set_appearance_mode("Light") else: customtkinter.set_appearance_mode("Dark") PS: Tanks for your videos
@Arkaitz.M.A
@Arkaitz.M.A 4 ай бұрын
After doing what you teach us, I have decided to reuse the text box code "seen in video 13 of the series", with the copy, paste, delete functions. After thinking a little and searching on Google I have seen that .pack() and .grid() cannot be used at the same time. I have decided to use .grid() for everything. For those who want to try it, you just have to add what you saw in this video to what you saw in video 13, and locate the elements. I have put them like this: my_text_box.grid(row=1,column=1,pady=20,padx=50) my_frame.grid(row=2,column=1,pady=10,padx=50) delete_button.grid(row=2,column=0,padx=10,pady=10) copy_button.grid(row=2,column=1,padx=10,pady=10) paste_button.grid(row=2,column=2,padx=10,pady=10) mode_button.grid(row=3,column=0,padx=10,pady=10)
@bill8126
@bill8126 2 ай бұрын
Hi. Do you have a lesson how to change language of interface widgets in customtkinter ?
@TkinterPython
@TkinterPython 2 ай бұрын
Sorry, no.
Custom Color Themes - Tkinter CustomTkinter 20
9:45
Tkinter․com
Рет қаралды 4,5 М.
RANDOM HEX CODE GENERATOR IN PYTHON
5:01
Technical Rushabh
Рет қаралды 4
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 134 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 16 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 15 МЛН
Intro To Object Oriented Tkinter - Object Oriented Tkinter 1
16:42
Tkinter․com
Рет қаралды 17 М.
File Dialog Boxes - Object Oriented Tkinter 3
10:15
Tkinter․com
Рет қаралды 2 М.
Pack Vs Grid For Placement - Intro To Tkinter 3
13:20
Tkinter․com
Рет қаралды 2 М.
Status Bars - Intro To Tkinter 10
9:43
Tkinter․com
Рет қаралды 762
Entry Boxes for Text - Intro To Tkinter 2
14:31
Tkinter․com
Рет қаралды 1,1 М.
Pack/Grid Forget and Destroy! - Intro To Tkinter 4
9:27
Tkinter․com
Рет қаралды 1,3 М.
Let's Build A Calculator - Object Oriented Tkinter 4
19:02
Tkinter․com
Рет қаралды 15 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН