How to Pass Data between Multiple Windows in Tkinter

preview_player
Показать описание
In this Tutorial we will explore how pass variables and other types of information (such as functions) between multiple Windows in Tkinter.

Website Link (Code):
Рекомендации по теме
Комментарии
Автор

Thanks a lot. This video helped me to move forward. However things get really complicated when you dont have 1 button but multiple ones - like array of buttons.

domantlen
Автор

I am a Korean student. I've been looking for this lecture for 3 weeks, and I really appreciate it. thank you thank you thank you thank you thank

hj_k
Автор

Eu precisava alterar o texto da label em um toplevel por informações estraidas do metodo da outra toplevel aberta com a toplevel anterior. Depois de ter passado horas procurando, mas a idéia explicado nesse vídeo foi o que funcionou. Valew pelo tutorial! 👍

edersilvacosta
Автор

Thank you very much. You are the man!! One month looking for this. Great class.

pauloafonsomedeiroskanda
Автор

im working on a multi window project and thankful i found this solution keep the good work

georgecodeing
Автор

Great tutorial
Could you access update self.text from in the SettingWindow class if you used SettingWindow class to inherit the Window class?
I have a second question: The inheritance I talked about in the first question, if you had an entry widget in class Window, would you be able to use the entry.get() method to get the content of the entry in the class SettingWindow? Thanks a lot.

adnerremy
Автор

Thanks for the tutorial. Had a question - Let's say that, SettingsWindow is not a window, but a new frame with which I'll replace the Window's frame. So, the desired behavior is, when program is run, Window is shown first, I click a button in it and as a result inside the same window, SettingsWindow's frame replaces contents of Window's frame. I can do this with pack_forget if all classes are in same .py file, but how do I do this if I want the classes in different .py files?

kite
Автор

Can you also update the main window with data coming from a skript that is executed by the press of a button in the main window? It should basically work like that, but with the update function called in skript, right?

mrpeace
Автор

i am hoping this is the video i have been looking for, it appears to be, in the program i am building at the moment, my biggest problem is passing the data to use by another widget, i kept getting errors, i think you have provided the answer, i just need to figure it out, thank you

sovereignlivingsoul
Автор

Why does this data exchange have to go via the detour of a TopLevel. Doesn't it also work directly? It would be nice if you could make a second video on this.

youtube-joker
Автор

with this how do u set the window size

im_icecube
Автор

exactly what I was looking for wow man great job !! I was wondering if instead of the entry widget can I create a text box widget and get the same value data from a text box?

bellow
Автор

Brother.. I've been using entry.get() only. No need for StringVar. Can anyone tell me what's the difference ?

deepstuff
Автор

hello sir,
Can you please provide a tutorial vedio on how to use OOP With tkinter.

gauravmonga
Автор

How about multiples files ? Can I access the gui from another file ?

NicolasPatate