▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My TH-cam Channel: bit.ly/3sHT8dc bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code: bit.ly/394NQ3R
Your videos are saving weeks or months of search for my diploma thesis. Thank you so much for that!! Your explanations are insane and so effective fro learning. Probably finally a worthy book and online course to buy soon :)
I have a question How do you hide the first Window after opening the second window?? and If we have a input field then how do we pass the data in the other screens??
In the method where you open you second window you can write nameofyourmainwondow.hide(). To pass on data you can get the data from your input depending on the input widget with .value() or .text() or whatever and then just make a variable in your second window with secondwindow.variablename = thedata.
For example if ineedto open multiple windows every timewhen clicked and each Window has different information ,it means i dont know howmany windows will be opened so i cannot do this with ui right
On executing window1.py I get an error in the line "self.pushButton = QtWidgets.QPushButton(self.centralwidget, clicked = Lambda : self.opernWindow())". The error mesasge points to ": " and says "sintaxis error" or "Lambda is not defined" . What can I do? Thank you.
@@Codemycom I have 3 ui files one is the main window and the other two are needed for a very long list, so I wondering if i can open a second window with a ui file in the same program without usin MDI area. Your answer will de butch appreciated sir.
Will this make the parent window freeze up? Suppose there is data streaming into window 1 to a textEdit window and the second window pops up. Would the stream freeze?
Your videos are fantastic. I'm not understanding why the need to convert the ui files to py files. Any changes to the ui file with QtDesigner will require another conversion and any added code to the py file is lost. Why not control all the window operations in a main py file?
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!
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?
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
Hi John, what's up? Man, I have a question about .ui file converter to .py. I having used the Designer from PySide6 and the command that you used to convert yours code not work in my version, so I have to use the follow command: pyside6-uic mainwindow.ui > ui_mainwindow.py The problem is that in final convertion, the .py file have not the lasted lines as your code: if __name__ == '__main__':... etc In my case, the final lines from .py file are: def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None)) self.pushButton.setText(QCoreApplication.translate("MainWindow", u"Chama 2\u00ba Tela", None)) # retranslateUi Have you any solution or alternative to my conversion works as yours? Thank you very much for these videos. Regards from Brazil
Hmm I have a question 🤔 how can we modify a window size from a button that’s on an other window ? (updating the window from an other window) thank you for the video ☺️
Great video , as usual. I have a question, how do I pass data from window2, back to window1? I'm tearing my hair out with this one, I just cannot get my head around navigating the classes.
Hi John, Thanks so much for the video. I've been struggling to get a very similar app working where the only difference is that the 2 windows are not compiled QTdesigner.ui files to py files, but rather each py file has a ui file it loads. Like this: * HomePage.py (this has a button labelled Goto_Window1.py that loads Window1.ui, and another button Goto_Window2 that loads Window2.ui. * When clicking on the Goto_Windows1.py it opens the Window1 window (and hides itself ie HomePage.py) OR when when clicking on the Goto_Windows2.py it opens the Window2 (and hides itself ie HomePage.py) * Both Goto_WIndows1.py and Goto_WIndows2.py have a "HOME" button which takes you back to the Homepage.py Can you please help me get a rough template for such an app. It makes more sense to me to work with ui files as then you can go back to change them only if you need to modify the interface without wrecking python code.
@@talitajames7652 I actually found a video by this same guy that shows how to do it, but I don't know enough about python yet to use it to open up anything other than the main window of my gui.
Hi, I realy like your videos, I learned a lot with them , thank you very muche and keep the good job. I need your help if u can help of course. I have a main window that i load with the 'loadUi' fonction', and I have a process under a function called 'upload_DB_to_remote' that takes some time to terminate , and when this function is started , the main Window does not show up until the told function have terminated its job, and this is really frustrating and non professionnal. My question is : how is it possible to make the mainwindow show up even if the function is still running. Because when this function is running , the user do not have any information on the screen, and does not know what is happening until it terminates, and displays a pop up message stating of the process status. If you have already done a video on this case, can you give me the link please !!! If not, could you do it and send me the link ? This will be really appreciated. Thank you again and have a nice day ! Kader D.
Awesome content! Thank you so much. However there is something i need to ask: Let's say we built the gui and and converted it to python file. After some coding we noticed a flaw in the gui and we need it to be an .ui file again to make the necessary adjustments. How do you convert it back to make adjustments?
▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/3sHT8dc bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶️ Get The Code:
bit.ly/394NQ3R
Sir, John
Double click on the widgets to change the text or to write. No need to scroll in search of it...
Your videos are saving weeks or months of search for my diploma thesis. Thank you so much for that!! Your explanations are insane and so effective fro learning. Probably finally a worthy book and online course to buy soon :)
Happy to hear it!
Great Python PyQt5 tutorial! Thanks for these!
Feed the algorithm! its free and it helps our favorite creators.
Thanks!
the best video i have found on the subject of opening windows.
Glad you liked it!
I have a question
How do you hide the first Window after opening the second window??
and
If we have a input field then how do we pass the data in the other screens??
In the method where you open you second window you can write nameofyourmainwondow.hide().
To pass on data you can get the data from your input depending on the input widget with .value() or .text() or whatever and then just make a variable in your second window with secondwindow.variablename = thedata.
I was waiting for this particular video for many days....
cool
Thank you very much. In this video, I found what I couldn't find anywhere else.
Happy to hear it!
Less goooo
Thanks for making a video about this.
sure thing!
You help us a lot with PySide. Thank you so much
I have no videos on PySide.
For example if ineedto open multiple windows every timewhen clicked and each Window has different information ,it means i dont know howmany windows will be opened so i cannot do this with ui right
thank you so much your tutorials are invaluable
Welcome!
I want to close the first window and after that open second window what should i do for that
Thx you very much Sir , God bless u 💖💖
welcome
On executing window1.py I get an error in the line "self.pushButton = QtWidgets.QPushButton(self.centralwidget, clicked = Lambda : self.opernWindow())". The error mesasge points to ": " and says "sintaxis error" or "Lambda is not defined" . What can I do? Thank you.
If you need to do that but from a main, how do you do it? Whatever I do it says I can't import the window in py form, and copy and pasting is useless
Why do you convert from .ui to .py files? I've been loading them and working with .ui files without issue. Pretty sure the conversion isn't needed!
You can do it that way as well. We do that later in the playlist, I like to teach all ways.
@@Codemycom which video is that sir?
@@leventefarkas4163 Check the playlist yourself.
@@Codemycom I have 3 ui files one is the main window and the other two are needed for a very long list, so I wondering if i can open a second window with a ui file in the same program without usin MDI area. Your answer will de butch appreciated sir.
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👌👌👍👍😁😁
welcome
Will this make the parent window freeze up? Suppose there is data streaming into window 1 to a textEdit window and the second window pops up. Would the stream freeze?
Your videos are fantastic. I'm not understanding why the need to convert the ui files to py files. Any changes to the ui file with QtDesigner will require another conversion and any added code to the py file is lost. Why not control all the window operations in a main py file?
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!
This is helpful. Thanks god for created u. Much love.
Thanks!
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.
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?
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
Hi John, what's up?
Man, I have a question about .ui file converter to .py.
I having used the Designer from PySide6 and the command that you used to convert yours code not work in my version, so I have to use the follow command: pyside6-uic mainwindow.ui > ui_mainwindow.py
The problem is that in final convertion, the .py file have not the lasted lines as your code:
if __name__ == '__main__':... etc
In my case, the final lines from .py file are:
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.pushButton.setText(QCoreApplication.translate("MainWindow", u"Chama 2\u00ba Tela", None))
# retranslateUi
Have you any solution or alternative to my conversion works as yours?
Thank you very much for these videos.
Regards from Brazil
Sorry, Pyside6 is a completely different thing
you're a life saver thank you !
Welcome!
Hmm I have a question 🤔 how can we modify a window size from a button that’s on an other window ? (updating the window from an other window) thank you for the video ☺️
thanks a lot sir .. god bless you
Welcome!
Sir please do python opencv tutorials in the future :) thank you wish you all the best
I luv ur video man
I luv it
thanks!
What if I had three windows, how would I close the second window?
Great video , as usual. I have a question, how do I pass data from window2, back to window1? I'm tearing my hair out with this one, I just cannot get my head around navigating the classes.
شرح راااااائع ❤️❤️❤️❤️
Thanks!
Hi John,
Thanks so much for the video.
I've been struggling to get a very similar app working where the only difference is that the 2 windows are not compiled QTdesigner.ui files to py files, but rather each py file has a ui file it loads.
Like this:
* HomePage.py (this has a button labelled Goto_Window1.py that loads Window1.ui, and another button Goto_Window2 that loads Window2.ui.
* When clicking on the Goto_Windows1.py it opens the Window1 window (and hides itself ie HomePage.py) OR when when clicking on the Goto_Windows2.py it opens the Window2 (and hides itself ie HomePage.py)
* Both Goto_WIndows1.py and Goto_WIndows2.py have a "HOME" button which takes you back to the Homepage.py
Can you please help me get a rough template for such an app.
It makes more sense to me to work with ui files as then you can go back to change them only if you need to modify the interface without wrecking python code.
How do you open a third window, if you pressed a button in window 2?
Awesome video!! Would love a video on how to implement another python script into the interface we make, such that it even shows results 🔥🔥🔥
Just do it in the normal way you integrate any additional python script into a python file.
What is the terminal that you are using in this video?
git-scm.com
you are awesome, thank you so much.
Thanks!
you just saved my project+++++++++++++:
Happy to hear it
Thank you very much!
Very welcome!
Hello, i have a problem. When i want to open second window i csnt use it. I can only use main window
same issue
@@RajGupta-sg7jn setwindowmodality to applocationmodal or other
very nice
Is there a way to call the windows as the .ui files instead of having to convert them to .py?
I doubt that, the .ui files are stored as XML, so its defiantly easier to convert to .py
@@talitajames7652 I actually found a video by this same guy that shows how to do it, but I don't know enough about python yet to use it to open up anything other than the main window of my gui.
Hi, I realy like your videos, I learned a lot with them , thank you very muche and keep the good job. I need your help if u can help of course. I have a main window that i load with the 'loadUi' fonction', and I have a process under a function called 'upload_DB_to_remote' that takes some time to terminate , and when this function is started , the main Window does not show up until the told function have terminated its job, and this is really frustrating and non professionnal. My question is : how is it possible to make the mainwindow show up even if the function is still running. Because when this function is running , the user do not have any information on the screen, and does not know what is happening until it terminates, and displays a pop up message stating of the process status. If you have already done a video on this case, can you give me the link please !!! If not, could you do it and send me the link ? This will be really appreciated. Thank you again and have a nice day ! Kader D.
Look into threading with python
Thanks a lot!
You're welcome!
Thank You!
You're welcome!
Awesome content! Thank you so much. However there is something i need to ask: Let's say we built the gui and and converted it to python file. After some coding we noticed a flaw in the gui and we need it to be an .ui file again to make the necessary adjustments. How do you convert it back to make adjustments?
Yeah, I need to do a video on this topic..
@@Codemycom It would be awesome. Thank you!
I m really Appreciate sir
Happy to hear it
Could you show us how to create dialog boxes by loading the dialog ui directly?
it closing while i am trying to run it
Check your code for errors.
thank you
Welcome
man like Walter White ahahaha thx man
Opening these two windows from a menu is quite something else that does not work.
Hey man, are you removing my comments? I've responded to an earlier question but my comment keeps getting deleted
No clue what you're talking about
Yo mr white started programming now
lol
Thanks man!
Welcome!
My window just crashes when I clicked it…
same here, but i loaded the ui for the firs window
Why would you convert .ui files to .py files? They work fine as .ui files! There's no need to convert them...
No, you're mistaken.
doesnt work gets an error thanks
you typed something wrong then
Wish you'd just post the code so I could see what is there instead of following you leapfrogging all over the place.
lol guys dont use pyuic5 window1.ui. i just use loadUI(windows.ui, self) in my python code