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.
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!!!:):):):)
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.
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
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.
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
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 :)
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.
So many things in one video. I found everything I wanted. 😊
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.
may be i missed that :) but its good that you got the concept from my video. thanks for supporting :)
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!!!:):):):)
i will continue more videos very soon, please stay tuned and recommend my channels to your friends as well ;)
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.
i will try my best ;)
Thanks, there's so much useful info.
You're welcome!
great video
Thanks!
Thanks sir very helpful
Good
Very clear!
Verry helpfull Bro! Thank You, Ok! ;)
Thank you so much :) more videos are available now :) i hope you will find them useful. thanks for the support and appreciating my efforts :)
beautiful video tank you so much
Bro how to call pygame window from tkinter plz if u have any idea tell
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
great job man really helpful :)
Main window me hi new window open ho sakti hai (mera matlab overlap )kya or agar ha to kese ?
i will try that in upcoming videos. i will continue making videos hopefully from next month ;)
can you please make a video on how to download output in tkinter (that is opened in a new window) in CSV or pdf?
sorry i didn't understand your point, can you explain please
Thank you so much!
You're welcome!
nice
okayy *coughs* but seriously thank you mate..
Okay !!
haha XD
Excelente and clear!!!
Which software?
Thx bro you are god
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.
Hi sir,
suppose i want to make an app for example GCD. How to make that in tkinter with users input
please explain your question.
So on windows I use pyinstaller to package my project to executable, is there something similar for linux please?
this is application windows bro, not microsoft windows :) this is the windows box within application
I don't think you understood my question bro, read it again please
got you, stay tuned i will release video on that very soon ;)
ok here you go i hope it helps ruclips.net/video/hsuL-rqYWGU/видео.html
Take a shot everytime he says "Okay
"
hahahaaha :) thanks for the support btw. checkout my latest videos too hopefully they will be usefull too for you.
Can u please explain how to make a multi window gui program using class ans objects in tkinter
will try to make it in upcoming videos .
Greeeeeeeeeeeat
how to close the current window when opening new window
How old are you brother?
:) young dear
Ok !? Yes, Ok xD
:-)
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
review your code dear, also check my new videos i hope they will be helpful too
Thank you!!!
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
future ki videos mein mein isko demonstrate kerke dikhaonga, aaj kal zara busy hun lekin jaldi continue karunga
@@codeworked ok sir, thanks
you didnt use mainloop of newwindow
if u click on new window n times , new window will open n times....i dont want that
disable the button on click than
Okey
Okey :)
What a boring python editor...!!!
Anyway, I've learned some techniques there.... Thanks👍🏾
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 :)
too much 'ok'
You should not be coding and running processes as root user not only is it un-required it's a security risk also!
i know dear, but thats my personal pc i used to work with. ;)
Stop saying ok every 5 seconds. OK?
OK :D
stop coughing in the mic please
lol may be i had an infection :P you should appreciate i worked for you my dear :) hahaha
Why do you say „ok“ after almost every sentence? Dont you hear that yourself before you upload such a nonsense?
man stop with this "ok?" ;P
:-)