New Top Level Windows - Tkinter CustomTkinter 15

  Рет қаралды 10,080

Tkinter․com

Tkinter․com

Күн бұрын

In this video we'll look at the TopLevel Widget in CustomTkinter and Python.
The TopLevel widget allows you to add new windows to your app, besides the main window.
Super useful for all sorts of things, and really easy to do with CustomTkinter!
#tkinter #codemy #JohnElder
Timecodes
0:00​​ - Introduction
1:24 - Create Button
1:50 - Create New Window Function
2:39 - Size and Title New Window
3:45 - New Window Resizable
5:03 - Add Widgets To New Window
6:06 - Close New Window Function
7:00 - Change New Window FG Color
8:13 - Conclusion

Пікірлер: 15
@TkinterPython
@TkinterPython 8 ай бұрын
▶ 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
@devanshroyal8372
@devanshroyal8372 3 ай бұрын
Hello, great video, and thanks for your content as always. I had issues opening the top level window at the right time, I created a new window to show a progress bar for scanning the files within the function that was scanning the files, but it opens after the files have been scanned. Is there a way to open them right when I call the function and shows itself ontop and also updates the progress bar as the files are being scanned simultaneously
@armandoobando6826
@armandoobando6826 4 ай бұрын
Sorry, I alrdy create a window for X function but instead to add all widgets in my window Y I just want create the new window X, but I have the code in another file, exist a form to I can create the new window X?
@LordMegabite
@LordMegabite 5 ай бұрын
When I create a new window, It always focus the main window instead of the one I just created. Why is this happening? Im running the version 'customtkinter 5.2.2'. Thanks, great videos !
@larslover6559
@larslover6559 5 ай бұрын
Me too! trying to figure it out. in regular tkinter that doesnt happen.Even if you have a customtkinter in main window and use just a reguler tkinter in new window it hides like it should. tell me if you figure it out!
@ahmettpamuk0
@ahmettpamuk0 Ай бұрын
@@larslover6559 u can use grab_set() function to fix it
@larslover6559
@larslover6559 5 ай бұрын
There must be a mistake in the customtkinter code itself as LordMegabite also pointed out.. The new window is hidden behind the root window in this code which obviously is a flaw.I'm making a simple app for my friend's school and I'm just forced to use regular tkinter as topwindow. Very annoying! hope somebody figure this out!!
@TkinterPython
@TkinterPython 4 ай бұрын
No mistake. stackoverflow.com/questions/8691655/how-to-put-a-tkinter-window-on-top-of-the-others
@shaunwhite8204
@shaunwhite8204 15 күн бұрын
How do i get data from an entry widget on the top level window back to the main window? Say i enter a name in the second/child window and i want to "get" that entry box variable and use it on the main window?
@TkinterPython
@TkinterPython 15 күн бұрын
Turn it into a global variable
@TaylorJenkins
@TaylorJenkins 8 ай бұрын
I noticed that you always drag new windows from off screen. Is it possible to have the new window open up in a specified location relative to the original window?
@TkinterPython
@TkinterPython 8 ай бұрын
Yes, just modify the geometry tag (I have videos on that on the Codemy.com KZbin Channel).
@user-it6ev2gw4d
@user-it6ev2gw4d 4 ай бұрын
hi, I've looked everywhere and i cant seem to find the answer, is there a way to open a new window inside the main window? i don't want a new window to pop up , just want to open a new window in the same window that already open???
@TkinterPython
@TkinterPython 4 ай бұрын
No, use a frame to open new things inside windows, not a new window.
Custom Fonts Widget - Tkinter CustomTkinter 16
7:47
Tkinter․com
Рет қаралды 5 М.
Intro To Object Oriented Tkinter - Object Oriented Tkinter 1
16:42
Tkinter․com
Рет қаралды 17 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 12 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 56 МЛН
Tkinter Layout Managers - Simple Crash Course
15:43
NeuralNine
Рет қаралды 7 М.
Style And Theme Your App The Easy Way - Tkinter Projects 4
16:17
Tkinter․com
Рет қаралды 17 М.
Input Popup Boxes - Tkinter CustomTkinter 14
9:53
Tkinter․com
Рет қаралды 8 М.
Menus - Intro To Tkinter 9
15:12
Tkinter․com
Рет қаралды 895
File Dialog Boxes - Object Oriented Tkinter 3
10:15
Tkinter․com
Рет қаралды 2 М.
Nature's Incredible ROTATING MOTOR (It’s Electric!) - Smarter Every Day 300
29:37
21 Programming Project Ideas (Beginner to Advanced)
15:49
Coding with Lewis
Рет қаралды 318 М.
Python Automation with PyAutoGUI | Full Course With Projects!
36:11
Code of the Future
Рет қаралды 168 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН