Work With Multiple Windows In Tkinter - Python

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

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

  • @varmaranjeet168
    @varmaranjeet168 3 года назад +1

    This was very useful. I had searched all over RUclips and finally landed on this video and it solved my problem. Thanks buddy. Love from India.

  • @AbhishekSingh-dt6br
    @AbhishekSingh-dt6br 4 года назад +5

    So many things in one video. I found everything I wanted. 😊

  • @Bvic3
    @Bvic3 2 года назад +2

    Great tutorial. First, a detail, initialising the global variable to None instead of "" would have been a tiny bit nicer.
    The big issue that isn't mentioned is that you can open many windows (and close them with the close button). But as soon as you start using the global variable, only the last opened window will be kept in the global variable and this will also deallocate from memory the "new_window.destroy()" of the previously opened window, making the "Close Me" buttons of previously opened window stop working!
    Overall, that's not much of an issue as I learnt what I wanted to learn. But a more careful management is required to create unique windows that you can only open once.

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

      may be i missed that :) but its good that you got the concept from my video. thanks for supporting :)

  • @rabeeahwasim3375
    @rabeeahwasim3375 3 года назад +4

    Dude you're amazing!!!
    Keep up the good work!!!
    This literally cleared all my queries in such a short time tp present my final project for tomorrow!!!:):):):)

    • @codeworked
      @codeworked  3 года назад

      i will continue more videos very soon, please stay tuned and recommend my channels to your friends as well ;)

  • @gustaveetheve5424
    @gustaveetheve5424 3 года назад +2

    Thank you for this.
    Can you also make a video explaining how we can create a second window that inherits the structure of the first window, but only change some things like title, etc..? Thanks.

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

    Thanks, there's so much useful info.

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

    great video

  • @rajarshimandal3235
    @rajarshimandal3235 3 года назад +2

    Thanks sir very helpful

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

    Good

  • @freddychedid9482
    @freddychedid9482 3 года назад +2

    Very clear!

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

    Verry helpfull Bro! Thank You, Ok! ;)

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

      Thank you so much :) more videos are available now :) i hope you will find them useful. thanks for the support and appreciating my efforts :)

  • @shado8118
    @shado8118 4 года назад +1

    beautiful video tank you so much

  • @SandeshMotoVlogs
    @SandeshMotoVlogs 3 года назад +1

    Bro how to call pygame window from tkinter plz if u have any idea tell

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

    Hello. I'm working on a project for my college right now. Can you tell me the easy way to get the user input from a window and send it to another ... like:
    I created 2 python files(Nr1 asks for the user input as integer and the nr2 shows how to solve The Tower of Hanoi using the input of the user in the file nr1)
    I tried doing this (file nr1):
    def get_user_input()->int:
    try:
    final_user_input = int(user_input.get())
    return final_user_input
    win.quit()
    except Variable:
    print("ERROR. NO an integer")
    ttk.Button(win, text="GO", width=20, command=get_user_input).pack(pady=20)
    and the files nr2 looks like this:
    from user_input_GUI import get_user_input
    user_input = get_user_input()
    for plate in range(user_input, 0, -1):
    rectangle = Plates(*set_plate(towerA, plate), colors[plate - 1], plate)
    towerA.stack_push(rectangle)
    the window of the first python file pops up but everytime when I inset a number and press "GO" it does nothing ... but it I insert an String like "My_name" then a error in Terminal shows up :/
    HELP PLS

  • @ln641
    @ln641 3 года назад +1

    great job man really helpful :)

  • @sonalisahite8971
    @sonalisahite8971 4 года назад +1

    Main window me hi new window open ho sakti hai (mera matlab overlap )kya or agar ha to kese ?

    • @codeworked
      @codeworked  4 года назад

      i will try that in upcoming videos. i will continue making videos hopefully from next month ;)

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

    can you please make a video on how to download output in tkinter (that is opened in a new window) in CSV or pdf?

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

      sorry i didn't understand your point, can you explain please

  • @jaeheich2240
    @jaeheich2240 3 года назад +1

    Thank you so much!

  • @philtoa334
    @philtoa334 3 года назад +1

    nice

  • @quarantineassistance5334
    @quarantineassistance5334 4 года назад +3

    okayy *coughs* but seriously thank you mate..

  • @SakarSubedi
    @SakarSubedi 4 года назад +3

    Okay !!

  • @silviogenao3416
    @silviogenao3416 4 года назад +1

    Excelente and clear!!!

  • @shwetamakwana8673
    @shwetamakwana8673 3 года назад

    Which software?

  • @awakehazerl8704
    @awakehazerl8704 3 года назад

    Thx bro you are god

    • @codeworked
      @codeworked  3 года назад +1

      i am just a human dear, will die one day. God is only one, forever .. stay tuned to my channel dear i will release more videos finally in next week :) i hope they will be also very useful for you. and thanks for liking my stuff.

  • @autarroy
    @autarroy 3 года назад

    Hi sir,
    suppose i want to make an app for example GCD. How to make that in tkinter with users input

    • @codeworked
      @codeworked  3 года назад

      please explain your question.

  • @AhmedHassan-jo1il
    @AhmedHassan-jo1il 4 года назад

    So on windows I use pyinstaller to package my project to executable, is there something similar for linux please?

    • @codeworked
      @codeworked  4 года назад

      this is application windows bro, not microsoft windows :) this is the windows box within application

    • @AhmedHassan-jo1il
      @AhmedHassan-jo1il 4 года назад +1

      I don't think you understood my question bro, read it again please

    • @codeworked
      @codeworked  4 года назад +1

      got you, stay tuned i will release video on that very soon ;)

    • @codeworked
      @codeworked  4 года назад +1

      ok here you go i hope it helps ruclips.net/video/hsuL-rqYWGU/видео.html

  • @Yieldfarm
    @Yieldfarm 3 года назад

    Take a shot everytime he says "Okay
    "

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

      hahahaaha :) thanks for the support btw. checkout my latest videos too hopefully they will be usefull too for you.

  • @nipunjain104
    @nipunjain104 3 года назад

    Can u please explain how to make a multi window gui program using class ans objects in tkinter

    • @codeworked
      @codeworked  3 года назад

      will try to make it in upcoming videos .

  • @darshanpanchal3046
    @darshanpanchal3046 4 года назад +1

    Greeeeeeeeeeeat

  • @taqikhan5418
    @taqikhan5418 3 года назад +1

    how to close the current window when opening new window

  • @ayushseth1422
    @ayushseth1422 3 года назад +1

    How old are you brother?

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

    Ok !? Yes, Ok xD

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

    i do not work for me... as soon as i launxh it open the 2 window, and the the button cant make another window apear

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

      review your code dear, also check my new videos i hope they will be helpful too

  • @nguyenvantrieu9963
    @nguyenvantrieu9963 4 года назад

    Thank you!!!

  • @gold_miner.
    @gold_miner. 4 года назад

    Sir jab mai new window me koi normal data insert kar rha hu to wo usi window me insert ho ja rha button pe click karne ke baad.
    Actually mai usme Python code Krna chahta hun magar mujse ho nhi pa rha.
    🙏🙏🙏 Pls sir help me

    • @codeworked
      @codeworked  4 года назад +1

      future ki videos mein mein isko demonstrate kerke dikhaonga, aaj kal zara busy hun lekin jaldi continue karunga

    • @gold_miner.
      @gold_miner. 4 года назад

      @@codeworked ok sir, thanks

  • @deepaksinha8010
    @deepaksinha8010 3 года назад

    you didnt use mainloop of newwindow

  • @Thrivedh23
    @Thrivedh23 3 года назад

    if u click on new window n times , new window will open n times....i dont want that

    • @codeworked
      @codeworked  3 года назад

      disable the button on click than

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

    Okey

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

    What a boring python editor...!!!
    Anyway, I've learned some techniques there.... Thanks👍🏾

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

      hahaha at least you learned from my videos ;) more videos are available now :) i hope you will find them useful. thanks for the support and appreciating my efforts :)

  • @kotai2003
    @kotai2003 3 года назад +1

    too much 'ok'

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

    You should not be coding and running processes as root user not only is it un-required it's a security risk also!

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

      i know dear, but thats my personal pc i used to work with. ;)

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

    Stop saying ok every 5 seconds. OK?

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

    stop coughing in the mic please

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

      lol may be i had an infection :P you should appreciate i worked for you my dear :) hahaha

  • @snahnaichow835
    @snahnaichow835 3 года назад +1

    Why do you say „ok“ after almost every sentence? Dont you hear that yourself before you upload such a nonsense?

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

    man stop with this "ok?" ;P