Made my day and propably saved me hours of looking through Stack Overflow
4 жыл бұрын
Honestly, I don't even know how to thank you. Thank you! I had been racking my brain for hours without realizing that the solution would be less complicated than I thought.
@joziahjamir46043 жыл бұрын
pro trick: you can watch movies at kaldrostream. Me and my gf have been using them for watching a lot of movies lately.
@quintonayaan44403 жыл бұрын
@Joziah Jamir Definitely, have been using Kaldrostream for since november myself :D
@CoreTech9514 жыл бұрын
Thank you so much, this video is ABSOLUTE GOLD! I've been working on my programming project for university (sort of a mechanical engineering toolbox app with all sorts of tools that make work easier) and I've been stuck on multiple window problem for 6 hours with no success, until I've found your video. Now everything is working perfectly and I can run another module within the parent window :D Thanks again mate, you are a life-saver! I have subscribed to your channel too, you have a lot of useful stuff on there.
@ajaysatbhadre90904 жыл бұрын
Thanks!
@michaelbutler65614 жыл бұрын
Great how-to. I had figured out how to pop up a message box but getting a new window open that I could actually do something in other than pass a message was difficult to figure out. Thanks a bunch.
@OtherRath4 жыл бұрын
This saved me hours of work of getting the Qt Designer code of 5 windows in one file. Awesome.
@sangwanizyambo74313 жыл бұрын
Thanks for the simple yet working solution! I'd spent hours trying to figure out how to implement it.
@Jeremyfto25 жыл бұрын
You my sir are a genius! I have legit been looking for 3 hours trying to figure out how to close a application and open up another one and you literally solved my problem! Thanks a lot
@amarshukla5 жыл бұрын
Very helpful for PyQT beginners. Thanks you!
@tahep39065 жыл бұрын
it turned out to be simpler than I expected, thanks a lot for this helpful tutorial
@Laotsu872 жыл бұрын
An afternoon of looking things up. This video made it easy.
@abdurrazzak1612 Жыл бұрын
Thank you very much for such a simple explanation and sharing your knowledge with us.
@giannisrallis55265 жыл бұрын
I lost one day fixing this problem and you saved me at last!!! Thanx
@utayasurian4194 жыл бұрын
Thank you very much, you solved my biggest fear in just 10 minutes...
@utayasurian4194 жыл бұрын
hi, i created a back button in new window and next button in main window. After i clicked next button to show new window, it was successfully hide the current main window but when i clicked back button on the new window, the application automatically closes itself. Any idea?
@aakashghole30074 жыл бұрын
Thank you very very much for this video. You have cleared my concepts of opening new windows in python thanks a lot
@meriemalahmadihammou60733 жыл бұрын
Thank you for this wonderfull video..it was very helpfull
@lucienkahozi33142 жыл бұрын
I like the way you say "other window"😀 thank you
@sarimbinwaseem4 жыл бұрын
Oh Great... Really simple and Great... I was looking it for quiet sometime and all forums are just not working for me...but this video works...
@AliKhandi4 жыл бұрын
very useful tutorial, solve my problem after hours on searching. thank you
@nimishpadal9733 жыл бұрын
Thank you so much! Much helpful.
@olexandrpoberezhniak12834 жыл бұрын
Кто ещё смотрит Индуса, не найдя русского адекватного контента - лайк на этот коммент. Посмотрим сколько нас.
@fayazmirani163 жыл бұрын
Thanks for giving such a lot information
@Mike4Lifexx5 жыл бұрын
Thank you for the video, it was very helpful.
@BitsOfBoris6 жыл бұрын
Hello :D I was struggling so bad with that, while I just needed the bit of code and to understand where to implement it :D Thanks a lot !
@vigneshwaran7162 жыл бұрын
How to go back to main window after opening second window (main window is hidden)
@michanisani6 жыл бұрын
Thanks. How can I return from other windows back to main windows when I close it ?
@mihaitza763 жыл бұрын
Fantastic! Great work, thanks.
@sergey55513 жыл бұрын
EXACTLY what I need! thank you!
@alikadhim54726 жыл бұрын
Excellent! Thank you for the wonderful explanation and for providing the files.
@peteradeyemo10934 жыл бұрын
Waoh wonderful I love this channel thanks Ajay
@TechAddictGuy3 жыл бұрын
Thanks..exactly what I was looking for
@SagarikaSengupta4 жыл бұрын
hi. can you please tell me the page that should open later is opening first? I took some reference from this tutorial and didn't do the exact one.
@olexandrpoberezhniak12834 жыл бұрын
Thanks for this video, i`m guy from Ukraine, and i don`t find video-tutorial like this on russian KZbin
@23charitraagarwal564 жыл бұрын
Bhai.. you saved me.. really.. I was messing around for solving this problem. And you came up with this.. Thank you very very much brother
@mmserty4 жыл бұрын
Thanks, very big thanks
@mejorgabrielcandia6 жыл бұрын
If you work directly with the ".iu" files like me, this works great! --------------------------------------------main------------------------------------------------ #2 files in folder "visual": Main.ui and frame.ui from PyQt5 import uic, QtWidgets from PyQt5.QtWidgets qtCreatorFile = "visual/Main.ui" #.ui MAIN WINDOW file name Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile) qtCreatorFile = "visual/frame.ui" #.ui SECOND WINDOW file name Ui_Frame, QtBaseClass2 = uic.loadUiType(qtCreatorFile) class MyMain(QtWidgets.QMainWindow, Ui_MainWindow): def __init__(self): QtWidgets.QMainWindow.__init__(self) Ui_MainWindow.__init__(self) self.setupUi(self) #here you config the button and call "openFrame" def openFrame(self): self.window = QtWidgets.QFrame() self.ui = Ui_Frame() self.ui.setupUi(self.window) self.window.show() if __name__ == "__main__": app = QtWidgets.QApplication(sys.argv) window = MyApp() window.setWindowTitle("IA - Clustering Jerárquico") window.show() sys.exit(app.exec_()) --------------------------------------------------------------------------------------------- that's it!
@cookiekoekje6486 жыл бұрын
Thank you *SO MUCH*! You're the only person on the entire internet to have a tutorial on this. I'm so thankful!
@sahiljain78716 жыл бұрын
kzbin.info/www/bejne/fZ_aqZ-jobVnj7M
@nayankumarshit75225 жыл бұрын
Thank you sir. you solved my problems
@marcocaimmi39196 жыл бұрын
I have QDialog window instead of 2 QMainWindow. I made the the changes you indicated. Th eprogramis not working and I get the following error: "setupUi() missing 1 required positional argument: OterWindow.it is like setupUi needs two arguments and i passed only one as you did "self.window). Can you help me? Thanks!
@akp_044 жыл бұрын
such an easy solution..thanks!
@suvabratamukherjee14613 жыл бұрын
Thanks lot..it was really helpful
@deepakkakade29794 жыл бұрын
How to avoid opening same sub window twice? Can we check if it is already opened in pyqt5?
@johntaggart41365 жыл бұрын
Great tutorial. Thank you.
@callmemk24603 жыл бұрын
This really made me understand how to work this out Thanks: )
@Айскрим-р4е4 жыл бұрын
Thanks for your videos
@kaoutherelhamdi80544 жыл бұрын
You are genius !!! I do appreciate your video you really helped me !!! Thanks .
@juleswinnfield14376 жыл бұрын
How can I make the buttons in the newly opened window work? They're unresponsive. The code is reached, but the buttons do not work?
@gabrielaascenciovalencia65345 жыл бұрын
Could you tell me what the code would be like to make it return to the main screen with a button, I am designing an interface with many options in this case I want you to return to the main screen, I am new to this but I want to turn on you could help me.
@ahmedlimam22414 жыл бұрын
Thank you so much
@issamboukhris1614 жыл бұрын
Thank you very much my friend !
@aaronwolf46204 жыл бұрын
Hey, thx for the help This was gold Sadly I have still a problem I can go back and forward, but if I do that more then 1 time, the windows close Does sb know how to handle this?
@tonygaupo6 жыл бұрын
Hi! Your video helped me. Just a question, after the otherwindow popped up, id like a close button to close the other window (I created a button in otherwindow). How can i do that?
@tonibgood6 жыл бұрын
That's a good question. I have the same doubt indeed ...
@tonygaupo6 жыл бұрын
I use this code. Ord_Search is the name of my form def close_ord_search_form(self): Ord_Search.close()
@amid68876 жыл бұрын
nice one but i didnot understand the last 2 lines of your openWindow(). the last 2 lines can be re-written as: MainWindow.hide() MainWindow.show() but, the question is: how the same variable is pointing to 2 different layouts? can you plz explain. i am new to py. thanks.
@brunomachado38633 жыл бұрын
Thank you very much! I from Brazil
@juleswinnfield14376 жыл бұрын
Oh my god. Just what I'd been looking for! Thanks so much for your help.
@sahiljain78716 жыл бұрын
kzbin.info/www/bejne/fZ_aqZ-jobVnj7M
@excellencemichel48756 жыл бұрын
Thank you very much the video. Only do not work because the variable does not exist in the class method. Don when we call the variable we are told it's not defined
@ashwiniashu35602 жыл бұрын
how to calculate squares and cubes using pyqt?
@Santanu_Pal4 жыл бұрын
Thanks a lot. so smart so simple.
@enginecompsecurity83985 жыл бұрын
Hi one question, if I have on application in pyqt and want run a script of gnuradio since my interface in pyqt, as I doing ?
@jainammehta60934 жыл бұрын
Thank you so much man it was really helpful
@akmalhidayat66133 жыл бұрын
you save my day...thanks
@gabriellaamelia13335 жыл бұрын
thank you for the explanation
@azmathayat13044 жыл бұрын
Hi i have done in the same way. I have three window, main window.py, employeesignup.py and Qdialog.... Thw code work fine when i move from main to employee second window but one i want to move from 2nd window to 3rd window Qdialog it does not work.... here is the function when i clcik in second window button to open 3rd window but it does not work. can you please help. print show result upto print::2 ihave also tried self.ui.retranslateUi(self, self.window) but nothing work self.window = QtWidgets.QDialog() self.ui = Ui_Dialog() print("2") self.ui.setupUi(self.window) print("3") self.window.show() looking for help. Thanks
@scumbagjay54676 жыл бұрын
Thank you for this tutorial! I have a question, if I open other window when i clicked a button. a new button pops out. but I tried to open a new window from the one that pops out but I get a error. Window -> new window -> new window. how can you do that sir? TY. please reply.
@valentindragin76535 жыл бұрын
Hello. I'm having the same problem at the moment. Have you found any solutions ever since you asked the question?
@SoumilShah5 жыл бұрын
@@valentindragin7653 same issues any solutions?
@QuangLe-zc7et6 жыл бұрын
Thanks for share but i have a question. Can you help me answer ? I have 2 file : MainWindow.py and CreateUser.Py. In MainWindow, if i press "Add User" button the CreateUser Dialog will appear. And in CreateUser Dialog, If i press "OK" or "Cancel" button the CreateUser Dialog will appear. Like you, i just using "Dialog.hide()". But the problem is on MainWindow.py , i import CreateUser.Py like this : "from CreateUser import Ui_Dialog". When i click "OK" or "Cancel" button. This error is show up : Dialog.hide() NameError: global name 'Dialog' is not defined So i think i must define an agrument for MainWindow.py what is Dialog. But i don't know how to do that ? Please tell me if you know. Many Thanks!
@cgbcharlie12343 жыл бұрын
thank you so much my program works now!
@silpisingha81404 жыл бұрын
Great tutorial helpe me a lot Keep it up
@ajaysatbhadre90904 жыл бұрын
Thanks!
@rvmaths9816 жыл бұрын
Thanks sir But i got a doubt If i try to implement this problem for 3 consecutive windows it doesn't work Need help for the same
@sarveshrayter76676 жыл бұрын
Hey did you find the solution? I am struggling with the same problem
@rvmaths9816 жыл бұрын
@@sarveshrayter7667 no sir I could not
@valentindragin76535 жыл бұрын
@@rvmaths981 The same problem. Have you found anything?
@valentindragin76535 жыл бұрын
@@sarveshrayter7667 Have you found any solution ever since? I happen to have the same problem
@charon33762 жыл бұрын
thank you so much maan, u saved alot of my time .. New subscriber !!!
@Atonix992 жыл бұрын
Not working. It says that the name openWindow is not defined!
@mymails59684 жыл бұрын
Thank You, How to return from OtherWindow to MainWindow?
@RajaKumar-jy2nb4 жыл бұрын
Thankx
@gouthamkumar1025 жыл бұрын
what if i want to pass some variable data from other window to main window and close the other window on button click
@emmanuelsheshi15535 жыл бұрын
python boo has a great video on this subject
@ajaysatbhadre90905 жыл бұрын
Watch my new video on this topic. kzbin.info/www/bejne/q2Klp4Svobh8pZo
@9sufian5 жыл бұрын
Thank you, you helped me a lot.
6 жыл бұрын
'"C:\Python35\python"' is not recognized as an internal or external command, operable program or batch file.
@sanjaythumma75376 жыл бұрын
Same here.. I need help
@ruminantdernegi31275 жыл бұрын
so right click MainWindow and execute with python then
@acanim12025 жыл бұрын
Thx, bro, your tutorial helping me, goodluck.
@padinmangesa72964 жыл бұрын
From indonesia Thanks a lot, that works
@alvinlorejas26874 жыл бұрын
thank you sir!
@iomerkhan29474 жыл бұрын
thank u soo much helped alot
@tayjen594 жыл бұрын
The best tutorial in the world!
@VuLe4 жыл бұрын
Thankyou so much.
@SoumilShah5 жыл бұрын
great thanks a lot great tutorial
@jaimebaez3263 жыл бұрын
ty, i love this, i have a bug when i try to open another window in the new window but idk, at least i can do one change
@darkaria884 жыл бұрын
So what if I want to open a 3rd window from the 2nd window. It gives error when attempting to hide window Main_Window is not defined....... Is no one else getting this message?
@kaii70754 жыл бұрын
I guess you should put the code on the script of the 2nd window to avoid the error
@affankaangungor27194 жыл бұрын
Thank U very very much ! U helped me alot thanks again🙂
@itgroup42434 жыл бұрын
thank's a lot
@oriagina80533 жыл бұрын
hello Ssj6, thanks for your videos that so simple and usefull. but i have problem, in my second window i have function. but when i open main to second that function connot run. could you help me?
@maedehshahabi47444 жыл бұрын
Really Thanks!
@redValky4 жыл бұрын
thanks bro. I was working on a project and this helped me so much. THANK YOU bhaaaaaaaiiiiiii
@abhaybhadouriya13405 жыл бұрын
thank you,you helped me a lot.
@haswanthaekula76565 жыл бұрын
How do i go back from other window to main window when i close the other window if the main window is hidden? Thanks!
@SoumilShah5 жыл бұрын
i am running into same issue did you find any solutions ?
@luiscarlospallaresascanio23746 жыл бұрын
Gracias,estaba buscando como hacerlo,no entiendo el idioma pero es entendible la forma como lo haces.
@DanielkPhotography7 жыл бұрын
Thank you for these awesome tutorials. In each tutorial you add code into the file created by pyuic4 or pyuic5. If one changes something in the gui, one needs to reuse pyuic4. All the added code is lost when working like this. Could you show how to create a new python file and import all the gui-classes and make a buttonclick react the same way? Thanks!
@ajaysatbhadre90907 жыл бұрын
Daniel k Ok ! I will create another video for you!
@DanielkPhotography7 жыл бұрын
Thanks!
@Sunshineshaurya6 жыл бұрын
Daniel k Hi Daniel! Did you find an answer to your question because I am trying a similar thing.
@Schadowshame6 жыл бұрын
not sure if you still need this, but you could try to create an instance of the mainwindow in a new class, where you then connect the buttons, something like this: from MainWindow import Ui_MainWindow class Controller() def __init__(self): self.main_window = MainWindow() self.main_ui = Ui_MainWIndow() self.main_ui.setupUi(self.main_window) self.connect_buttons() self.main_window.show() def connect_buttons(self): self.main_ui.button_XYZ.connect(self.DoSomething) ....... def doSomething(self): ........ if __name__ =="__main__": app = QApplication(sys.argv) controller = Controller() sys.exit(app.exec())
@DanielkPhotography6 жыл бұрын
There's a great example on: kzbin.info/www/bejne/jJrKhoB3m6plp5Y
@Synergy_Jxyy10 ай бұрын
Thank you
@valentindragin76535 жыл бұрын
Hello! Great video. Really helpful. But when I was trying to implement the information that you give in this video I ran into a problem. Could you help me out? Right now I'm working on the prototype of an interactive test for pupils. This prototype has 4 windows: 'welcome' window; 'question1'; 'question2' and 'results'. I use python 3.7; pyqt5 and Qt Designer. For the last couple of days I've been searching through a lot of information to find the way how to assemble a GUI which would consist out of many windows that are called one by one when certain buttons in the windows are pushed. I managed to find only a couple of examples but these programs do not go beyond 2 windows. And that's when I came across my problem. I want the program to display 'welcome' window, then when the only button 'start the test' is pushed I want it to pass on to the first question which this program already does. But when I want to move on from 'question1' to 'question2' by pushing 'nextQuestion' this is when it crashes. It says 'question1' is not defined. When I start the program directly by runing the file 'question1' it does get to the 2nd question but when the 'goToTheResults' button is pushed it crashes again. In this case it says 'question2' is not defined. I wonder what the possible solution might be
@yamatouchiha12455 жыл бұрын
Hello, how do i add code to the push buttons. Thanks in advance
@AliKhandi4 жыл бұрын
how can I close previous window after click??
@Folka5484 ай бұрын
thank u bro:) still helpful
@flavio49232 жыл бұрын
Omg, thank you!
@V12-y5b5 жыл бұрын
Thanks man , really appreciate your efforts , it will help me to save a lot of time , keep up the good work .
@alessandrotozzi87296 жыл бұрын
Hi thanks for the video, can you show me how close/hide the preview window when I open another?