Pass Data Between Windows - PyQt5 GUI Thursdays #25

preview_player
Показать описание
In this video I'll show you how to pass data from one window to another with PyQT5 and Python!

Passing data from one window to another with PyQT5 is pretty easy.

In this video we'll type something into a box on one window, and then when we click a button - whatever we typed in the box will appear in the other window.

#pyqt5 #codemy #JohnElder

Timecodes

0:00​​ - Introduction
0:50 - Create GUI in PyQT5 Designer
3:12 - Convert UI files To Python
3:56 - Import Second File To Main Program
4:12 - Create Function To Open Second Window
5:46 - Create Function To Pass Data Between Windows
8:27 - Understanding Program Flow Between Windows
9:50 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code:

Codemycom
Автор

great video!
Feed the algorithm! It helps the creators of the videos we love

RyanDanielG
Автор

Less goooo
Thanks for clearing all my doubts.

abrarmulla
Автор

Thanks for using my suggestion about clicking on the widget to change the name or text.

codeKeshav
Автор

Hey i had a doubt.
i want to input stuff in the second window and show it in a list widget in the first window
how do i do that?

integralofthederivative
Автор

Hi John, I'm not sure where to ask this but I'll do it here. I've made a GUI to my program and converted the ui to py. Then I did some changes to the object names, and some values.. the question is: is there any way to 'convert' the '.py' back to '.ui' so I can have both equal in IDE and designer? thx in advance. I'm learning a lot from your videos, great job!

kunrath
Автор

I have really enjoyed your channel, John. Would you consider a PyQt5 tutorial where a TreeView is used to drag and drop image files into Labels and text files into TextEdits? That would be extremely useful; especially, if someone like you can cut through the online maze.

maxrichey
Автор

It is normally at 3x. Haha. Great Content!

shashvatsingh
Автор

What about the other way? If we want the second window to send info to the main window?

StalkedByLosers
Автор

Thanks a lot..!! You made an awesome job..!! Keep going..!! :D You have a new subscriber.!! 🤘

eduardozaratemontalvo
Автор

If the second window was not open when text submitted, it doesn't show - but could you check second window exists as part of the submit method? If it does not, then run the open second window method first, then the submit method. Would that work? BTW I am finding it better practice to import the UI files rather than doing 'hard-coded' conversions. That way I can make any number of updates to the UI file without repeated conversions every time. [loadUi("foo.ui", self) ]

pdep
Автор

Great work. Your tutorials are awesome. How do i check if second window is opened before passing the data?

WaleFolorunso
Автор

why not use py creator, you wouldn't need to convert the ui files into python and it has it's own text editor so you can edit simultaneously, though to be honest sublime looks way better so I can see why lol. Also great tutorials!

gagannagpal
Автор

Can you Make tutorial on TornadoFx (Kotlin language)..?

MayankKumar-yxdp
Автор

Hell yeee, can u make this tutorial in kivyMd?

Izzat-bjle