def __init__(self): QtGui.QDialog.__init__(self) self.setupUi(self) # Set up the user interface from Designer. self.show()