New Top Level Windows - Tkinter CustomTkinter 15

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

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

  • @TkinterPython
    @TkinterPython  11 месяцев назад +3

    ▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book
    bit.ly/45iO4OP bit.ly/3K4qlZC
    ▶ See More At: ✅ Subscribe To My RUclips 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

  • @LordMegabite
    @LordMegabite 9 месяцев назад +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 8 месяцев назад

      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 4 месяца назад

      @@larslover6559 u can use grab_set() function to fix it

  • @devanshroyal8372
    @devanshroyal8372 6 месяцев назад

    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 7 месяцев назад

    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?

  • @shaunwhite8204
    @shaunwhite8204 3 месяца назад

    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  3 месяца назад

      Turn it into a global variable

    • @perelmanych
      @perelmanych 2 месяца назад

      Pass a dictionary to your new window function. Modify it inside and then you can use it in your main program.

  • @larslover6559
    @larslover6559 8 месяцев назад +1

    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  8 месяцев назад +1

      No mistake. stackoverflow.com/questions/8691655/how-to-put-a-tkinter-window-on-top-of-the-others

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

    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  11 месяцев назад +2

      Yes, just modify the geometry tag (I have videos on that on the Codemy.com RUclips Channel).

  • @JBe-c8c
    @JBe-c8c 7 месяцев назад

    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  7 месяцев назад

      No, use a frame to open new things inside windows, not a new window.