I don't follow 100%, but I guess you have say a GameMainWindow (non Qt), and you want to open a new QtDialog from within your MainWindow?
The problem might be if you run your own even loop, then you run PyQt's event loop, messages for your window are no longer being received, causing the freeze. Since I don't know what your MainWindow is I can only haphazard a guess. Can you post a short sample reproducing the freeze? GatorAlli wrote: > > You see... I have a main application window. There is a button in the main > window. Whan you click the button, the dialog should pop up. When the > dialog's close command is called, I want the dialog to close cleanly, > returning to the main window. > > I tried this... > > ______________Mainwindow.py________________ > import sprite > import sys > app = QtGui.QApplication(sys.argv) > ui = sprite.action_select_dialog() > ui.show() > sys.exit(app.exec_()) > ___________________________________________ > > It opens the dialog perfectly, but when I call the "hide" command on the > dialog, the dialog closes, but the main window is frozen. :-(( > > That's all I want you to answer. > > > > > > -- View this message in context: http://www.nabble.com/How-do-you-close-a-QDialog--tp22874235p22981747.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt