I\'m trying to use pyqt to show a custom QDialog window when a button on a QMainWindow is clicked. I keep getting the following error:
$ python main.py DEBUG:
Ui_Dialog should inherent from QtGui.QDialog, not object.
class Ui_Dialog(QtGui.QDialog): def __init__(self, dbConnection): QtGui.QDialog.__init__(self) global c c = dbConnection