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
  • НаукаНаука

Комментарии • 18

  • @HermannWinter
    @HermannWinter 4 месяца назад

    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.

  • @rickyusuf8696
    @rickyusuf8696 5 месяцев назад

    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

    • @jobinpy
      @jobinpy  5 месяцев назад +1

      Glad it was helpful!

  • @laserstation
    @laserstation 9 месяцев назад

    It helps me to understand class in python deeply. Thanks for the teaching.

    • @jobinpy
      @jobinpy  9 месяцев назад

      Glad to hear that!

  • @jurandicarlos192
    @jurandicarlos192 Год назад +1

    congratulations! great class. excellent teaching.

    • @jobinpy
      @jobinpy  Год назад

      I'm glad it was helpful, thanks for watching!

  • @cbonino
    @cbonino 2 года назад +1

    very useful and clear!, thanks!!!

    • @jobinpy
      @jobinpy  2 года назад

      Thanks for watching!

  • @ahmedragala3946
    @ahmedragala3946 10 месяцев назад

    thanks!

  • @belaidechnnaq4289
    @belaidechnnaq4289 Год назад

    good and pro job. is correct that we can solve every problem in desktop projects?

  • @TomorrowsDance
    @TomorrowsDance 11 месяцев назад

    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.

    • @TomorrowsDance
      @TomorrowsDance 11 месяцев назад

      I got it from your other video, thanks again!

  • @bentsionben-david2769
    @bentsionben-david2769 2 года назад +1

    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.. 🙏

    • @jobinpy
      @jobinpy  2 года назад +1

      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.

    • @bentsionben-david2769
      @bentsionben-david2769 2 года назад

      @@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🙏🙏🙏

    • @jobinpy
      @jobinpy  2 года назад +1

      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.

    • @bentsionben-david2769
      @bentsionben-david2769 2 года назад

      @@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 🙏🙏🙏