39 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
40 QDialog.__init__(self,parent,name,modal,fl)
41 layout = QVBoxLayout(self,6,6,
"AboutFormLayout")
42 self.
text=QTextBrowser(self,
"log")
43 self.text.setFrameShape(QTextEdit.NoFrame)
44 self.text.setTextFormat(QTextEdit.PlainText)
47 self.text.setReadOnly(1)
49 layout.addWidget(self.
text)
50 self.
button = QPushButton(self,
"pushButton1")
51 self.button.setText(
"&Close")
52 layout.addWidget(self.
button)
53 self.resize(QSize(532,437).expandedTo(self.minimumSizeHint()))
54 self.connect(self.
button,SIGNAL(
"clicked()"),self.accept)
58 if __name__ ==
"__main__":
59 a = QApplication(sys.argv)
60 QObject.connect(a,SIGNAL(
"lastWindowClosed()"),a,SLOT(
"quit()"))
62 w.text.setText(
"un texte extremement loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong")