Passing data between child and parent window in Tkinter Toplevel

preview_player
Показать описание

We can pass data from child window and display the same in Parent window.
We will declare a string variable in Parent window and add one entry widget in child window. The string variable in parent window will be connect to the Label in parent window.
The data entered in child window entry widget will be set to the string variable on click of a button.

Part I on how to open and close child window from parent window

#tkintertoplevel #databetweenwindow #childwindowdata #parentwindowdata #plus2net #tkinter #python #passingdata, #windowsPassingData
Рекомендации по теме
Комментарии
Автор

Looking to see how to do this with PyQt5.

SHONNER
Автор

Thank you very much!... was searching a lot for a solution to transfer data like this, and this helps me a lot!

elmatt
Автор

I am creating a multi-page data entry form with tkinter". It contains "next" and " back" buttons. The first page has few entry boxes for the users and the second page has some too. Is there a way I can get the value (entered by the users on the first page) displayed in the entry box if I went back to the first page from the second page to edit the values? Please let me know if this doesn't make sense.

rushibacharya
Автор

I need to pass an entry from child form to a combobox on the parent. Any tips? I have been searching for help on this for months and cannot update the combobox to reflect the new data.

kendiener