How To Open A Second Window - PyQt5 GUI Thursdays #24

How To Open A Second Window - PyQt5 GUI Thursdays #24

Codemy.com

2 года назад

65,290 Просмотров

In this video I'll show you how to create and open a second window in your PyQT5 app.

We'll create a second window using the designer, and then open that second window by clicking a button in our main window.


I'll also show you how to open a dialog box without buttons using the same method.


#pyqt5 #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:00 - Create Main Window In Designer
1:58 - Create Second Window In Designer
2:38 - Rename Second Window
3:50 - Create Dialog Box Without Buttons In Designer
4:55 - Convert UI Files To Python
6:04 - Create Function To Open Second Window
8:04 - Import Second Window To Python File
8:28 - Call Function When Button Clicked
9:08 - Test It Out!
9:36 - Open Dialog Box Window
12:40 - Conclusion

Тэги:

#pyqt5_open_second_window #pyqt5_open_multiple_windows #pyqt5_window_open #pyqt5_open_additional_windows #pyqt5_open_other_window #pyqt5_open_window #pyqt5_show_window #pyqt5_show_second_window #pyqt5_show_other_window #codemy.com #john_elder #john_elder_pyqt5 #pyqt5_tutorial_#24 #john_elder_pyqt5_#24 #pyqt5_designer #pyqt5_python #pyqt5_tutorial_python #pyqt5_tutorial_python_3 #pyqt5_tutorial_for_beginners #python_pyqt5_designer_tutorial #pyqt5_tutorial_codemy
Ссылки и html тэги не поддерживаются


Комментарии:

yashar farzizadeh
yashar farzizadeh - 28.09.2023 17:56

I very very tried to do this but I couldn't do this your video helped me for do. thank you very much for helping me👌👌👍👍😁😁

Ответить
Лада Приора
Лада Приора - 26.09.2023 11:53

doesnt work gets an error thanks

Ответить
Tech With Haroldd
Tech With Haroldd - 20.09.2023 12:31

I want to close the first window and after that open second window what should i do for that

Ответить
ㅎ
- 19.08.2023 04:19

I luv ur video man
I luv it

Ответить
Koray Alkan Karakoç
Koray Alkan Karakoç - 09.08.2023 19:11

Thanks man!

Ответить
Kitten
Kitten - 19.07.2023 21:03

thanks a lot sir .. god bless you

Ответить
João Paulo da Silva
João Paulo da Silva - 05.07.2023 01:33

You help us a lot with PySide. Thank you so much

Ответить
Андрей Тишкин
Андрей Тишкин - 23.06.2023 10:23

You are cool! Thanks! Ебать конечно он учитель. Документация и то интереснее !

Ответить
Houimel Firas
Houimel Firas - 01.06.2023 02:19

i want to hide the first mainwindow where i open the second mainwindow and i want to hide the second main window where i open the third mainwindow but i can't i don't how to fix it help me please

Ответить
BYTEwasD
BYTEwasD - 16.04.2023 22:26

you just saved my project+++++++++++++:

Ответить
junaid hamdare
junaid hamdare - 11.03.2023 14:27

Good video and explanation, how can we pass the parameters and receive them from other window.? Can you send a link if any video exist.

Ответить
Ded Pihto
Ded Pihto - 21.01.2023 23:06

lol guys dont use pyuic5 window1.ui. i just use loadUI(windows.ui, self) in my python code

Ответить
Faishal Ichal
Faishal Ichal - 15.01.2023 18:57

if i i give the button in second window and give the function of the button, how to combine betweet first and second gui?? i already tried it but still failed? can yu help me? or do you have discord channel?

Ответить
pheebs lira
pheebs lira - 02.01.2023 00:40

What if I had three windows, how would I close the second window?

Ответить
black__knight YT
black__knight YT - 23.12.2022 05:31

How do you open a third window, if you pressed a button in window 2?

Ответить
Michael Elder
Michael Elder - 05.12.2022 00:25

Is there a way to call the windows as the .ui files instead of having to convert them to .py?

Ответить
Andres Felipe Chacon Alonso
Andres Felipe Chacon Alonso - 15.11.2022 03:53

Hi, I have a question, how can I return to MainWindow? I was trying with the import but causes a circular problem, moreover I was trying to send MainWindow as a paremater in the setupUI, but I can't figure it out how to return. I really appreciate your advices.

The video is AWESOME!

Ответить
Karol30011
Karol30011 - 14.11.2022 14:43

Hello, i have a problem. When i want to open second window i csnt use it. I can only use main window

Ответить
meme
meme - 13.11.2022 15:03

شرح راااااائع ❤️❤️❤️❤️

Ответить
Kevin  Maoty
Kevin Maoty - 25.10.2022 15:52

Thx you very much Sir , God bless u 💖💖

Ответить