Home > other >  How to exit the pyqt application form, but don't quit the program?
How to exit the pyqt application form, but don't quit the program?

Time:09-23

I wrote one of the main program, when reaching a condition called a desktop widget implemented using pyqt

 if XX: 
App=QApplication (sys. Argv)
P=pet. DesktopPet () # import pet come in a py files, DesktopPet is a Class Class
Sys. Exit (app. Exec_ ())
in pet. Py, wrote out method, click the exit button
 def quit (self) : 
The self. The close ()
Sys. The exit ()

This will end the entire program, I want to achieve is totally out of widgets, then return to the main program, the main program very common

Ask everybody to help me have a look, give me some advice!!!!!
  • Related