Tkinter - Prompt user for input (Toplevel window)
HTML-код
- Опубликовано: 21 июл 2024
- In this video, I'll show you how to create a toplevel window in an object oriented way. I'll also show you how to prompt for user input on a toplevel window using wait_window(), all using Tkinter and Python.
#tkinter #python #python3
0:00 Intro
1:13 Main window class
4:39 Run demo so far
5:51 Second window class
10:36 Run demo so far
10:58 Can open multiple windows
12:32 Without wait_window()
13:35 wait_window()
17:47 transient()
18:16 grab_set (always on top)
18:48 without transient()
19:42 Get user input
22:33 Final demo
22:56 Closure Наука
greate tutorial. Now it makes much more sense for me to create the GUI with pygubu and focus on writing the business logic with classes.
Thank you so much for this great tutorial! It’s is very clear and easy to understand. I love how you focus on having a professional app and making it object-oriented
Glad it was helpful!
It helps me to understand class in python deeply. Thanks for the teaching.
Glad to hear that!
congratulations! great class. excellent teaching.
I'm glad it was helpful, thanks for watching!
very useful and clear!, thanks!!!
Thanks for watching!
thanks!
good and pro job. is correct that we can solve every problem in desktop projects?
Very useful video, thanks a lot! Question: In order to avoid a long file with many -many lines (in a big project), would it be possible to place the window programs in different files (and stil cooperate with the main window)? It would be modular, and easier to maintain or further develop. Maybe it is worth another video tutorial. Thanks in advance for the help.
I got it from your other video, thanks again!
Wow.. great tutoriwl so easy to understand.. how to call toplevel/ frame from file2.py into mainframe in file1.py by button clicked? To make multi frsmes 1 inside the other as one piece? Tnx.. 🙏
when a class is in another python file (such as file2.py), you can import it. For example: from file2 import MyCustomClassWindow. Thanks for watching my videos.
@@jobinpy
I didnt succeed unfortunately.. i want frame ftom fily2.py to embedd as one piece (as one integrated window and not separated 2 windows) and to specify exactly frame from file2.py is shown. Please can you make this video? I think many need and want this. Thank you🙏🙏🙏
Hi, I'll look into making a video about importing frames from different .py files and organizing GUI objects in a future video (I don't know when exactly). Thanks for the idea.
@@jobinpy wow wow wow ... thank you so much i your videos they are so clear and easy to understand difficult issues especially to me as new in python/tkinter.
it's hard to build app only in one .py file, so most important is multiple pages to switch between multiple screens (toplevels/frames with scrollbar moved up/down by mouse) from different .py files shown a one piece as embedded 1 frame one inside the other (without opening new window).. i think your video will be worldly pioneer with this.. i can't wait to see it 🙏🙏🙏