How to Pass Data between Multiple Windows in Tkinter

  Рет қаралды 31,435

CodersLegacy

CodersLegacy

Күн бұрын

Пікірлер: 30
@jihongkim98
@jihongkim98 2 жыл бұрын
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 you.........
@domantlen6231
@domantlen6231 10 ай бұрын
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.
@edersilvacosta6208
@edersilvacosta6208 Жыл бұрын
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! 👍
@pauloafonsomedeiroskanda4836
@pauloafonsomedeiroskanda4836 2 жыл бұрын
Thank you very much. You are the man!! One month looking for this. Great class.
@williamkidwell1504
@williamkidwell1504 2 жыл бұрын
I agree, it took a long time for someone to come forward with a "user friendly, easy enough to understand" for me tutorial on this topic. Still a lot to learn. Hoping you might be up to taking questions.
@georgecodeing7907
@georgecodeing7907 2 жыл бұрын
im working on a multi window project and thankful i found this solution keep the good work
@coderslegacy5661
@coderslegacy5661 2 жыл бұрын
Great to hear!
@MohammedShibli-ni4qp
@MohammedShibli-ni4qp 2 жыл бұрын
thank you sooooooooooo much 🥺🥺 you really help me
@ReinventedWeb
@ReinventedWeb 2 жыл бұрын
Thats really useful. Great content.
@可無-v6m
@可無-v6m 8 ай бұрын
it helps a lot ! thanks
@mrpeace3860
@mrpeace3860 Жыл бұрын
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?
@im_icecube
@im_icecube Жыл бұрын
with this how do u set the window size
@bellow247
@bellow247 2 жыл бұрын
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?
@coderslegacy5661
@coderslegacy5661 2 жыл бұрын
You can easily do this with any widget. The function name and the syntax may change a bit, but the concept remains the same.
@sovereignlivingsoul
@sovereignlivingsoul 9 ай бұрын
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
@youtube-joker
@youtube-joker Жыл бұрын
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.
@adnerremy2650
@adnerremy2650 2 жыл бұрын
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.
@gauravmonga4051
@gauravmonga4051 2 жыл бұрын
hello sir , Can you please provide a tutorial vedio on how to use OOP With tkinter.
@coderslegacy5661
@coderslegacy5661 2 жыл бұрын
Sounds like a good idea! Will add it to the list.
@kite8556
@kite8556 2 жыл бұрын
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?
@NicolasPatate
@NicolasPatate 2 жыл бұрын
How about multiples files ? Can I access the gui from another file ?
@coderslegacy5661
@coderslegacy5661 2 жыл бұрын
Yup, you totally can. Same procedure as shown in the video.
@زيادجلالمحمدجلال
@زيادجلالمحمدجلال 2 жыл бұрын
ازي حضرتك يابشمهندس
@sajithjanardhanan123
@sajithjanardhanan123 2 жыл бұрын
7:05
@deepstuff7610
@deepstuff7610 2 жыл бұрын
Brother.. I've been using entry.get() only. No need for StringVar. Can anyone tell me what's the difference ?
@coderslegacy5661
@coderslegacy5661 2 жыл бұрын
That's fine too. They are two different methods for same purpose. StringVar and IntVar are more important for radiobuttons and checkbuttons.
@زيادجلالمحمدجلال
@زيادجلالمحمدجلال 2 жыл бұрын
How connect with two Tk in python
@coderslegacy5661
@coderslegacy5661 2 жыл бұрын
It's almost always not a good idea to have more than one tkinter instance in your program. We always use TopLevel instead. Passing data between two Tkinter instances would become alot trickier. I'm not sure what would happen if one tkinter instance tried to access widgets from another tkinter instance. You can always try the above technique with two different instances though and see what happens.
@زيادجلالمحمدجلال
@زيادجلالمحمدجلال 2 жыл бұрын
السلام عليكم و رحمة الله و بركاته
How to check Widget Type in Tkinter?
4:43
CodersLegacy
Рет қаралды 1,4 М.
Using tkinter with classes
28:23
Atlas
Рет қаралды 76 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Python Tkinter GUI Application With Multiple Pages | Switch Pages in Tkinter | Tkinter Pagination
42:33
Working with multiple windows in tkinter
13:26
Atlas
Рет қаралды 38 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 84 М.
Make Modern Python Dashboards With Tkinter & Matplotlib!
15:54
TurbineThree
Рет қаралды 122 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 419 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Classes with tKinter - Python Tkinter GUI Tutorial #43
9:20
Codemy.com
Рет қаралды 108 М.
Creating animated widgets in tkinter
30:52
Atlas
Рет қаралды 39 М.