[PyQt] Problem with class inheriting QDialog

dizou di_zou at yahoo.com
Fri Nov 20 16:44:30 GMT 2009


import sys
from PyQt4.QtGui import QDialog

def Dialog(QDialog):
	def __init__(self, parent):
		QDialog.__init__(self, parent)


from PyQt4.QtCore import SIGNAL, SLOT, QDir, QFile
from PyQt4.QtGui import QApplication, QMainWindow, QMenu, QMessageBox, \
     QWidget, qApp, QAction, QFileDialog, QPushButton
from Dialog import *

class MainWindow(QMainWindow):
    def __init__(self):
        self.editButton = QPushButton(self)
        self.connect(self.editButton, SIGNAL("clicked()"),
    def EditButtonClicked(self):
        self.dialog = Dialog(self)
        print type(self.dialog)

View this message in context: http://old.nabble.com/Problem-with-class-inheriting-QDialog-tp26421493p26443582.html
Sent from the PyQt mailing list archive at Nabble.com.

More information about the PyQt mailing list