pyqt popup window not displaying properly
<p>I have created two different pyqt windows, and within one of them, by pressing a button, it should bring up another smaller window. While my code does pretty much exactly what I just dais it should do, there is a problem with the way the smaller popup window is displayed. </p>

<p>This is my code for displaying the windows and the button functionality:</p>

<pre><code>from PyQt4 import QtGui
from EnterprisePassport import Ui_StudentEnterprisePassport
from Session_tracker import Ui_Session_tracker

class StudentEnterprisePassport(Ui_StudentEnterprisePassport):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.setupUi(self)
        self.sessionTracker_btn.clicked.connect(self.handleButton)
        self.window2 = None

    def handleButton(self):
        if self.window2 is None:
            self.window2 = Session_tracker(self)
            self.window2.show()

class Session_tracker(Ui_Session_tracker):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.setupUi(self)

if __name__ == '__main__':

    import sys
    app = QtGui.QApplication(sys.argv)
    window = StudentEnterprisePassport()
    window.show()
    sys.exit(app.exec_())
</code></pre>

<p>I can still use the functions within the window, but I can't move it, or close it, and there is no title bar. Have I done something wrong within my code for the popup window to appear like this?</p>

<p>Edit:</p>

<p>Original Session tracker window: <a href="http://i.stack.imgur.com/eQqkj.png" rel="nofollow">Original window</a>
Popup session tracker window: <a href="http://i.stack.imgur.com/H01cZ.png" rel="nofollow">Popup window</a></p>