How can I open another gui by push button?
<p>I made several gui by qt designer and want to connect them by push button</p>

<p>If I push button in my main gui I want to open the second gui</p>

<p>SecDialog is my second gui and MainWindow is the main gui</p>

<p>what is the problem? </p>

<pre><code>import sys
from PyQt4 import QtCore, QtGui
from mainwindow import Ui_MainWindow
from secdialog import Ui_SecDialog

class SecDialog(QtGui.QDialog, Ui_SecDialog):
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)
        self.setupUi(self)

class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
    def __init__(self, parent=None):
        QtGui.QMainWindow.__init__(self, parent)
        self.setupUi(self)
        self.pushButton.clicked.connect(self.handleMainWindow)

    def handleMainWindow(self):
        window = SecDialog(self)
        window.show

if __name__ == '__main__': 
    app = QtGui.QApplication(sys.argv)
    ex = MainWindow()        
    ex.show()
    sys.exit(app.exec_())
</code></pre>