[PyQt] Problem with a simple QDialog

Horst Herb subscriptions at gnumed.net
Wed Nov 28 09:21:59 GMT 2007


On Wednesday 28 November 2007, Alexandre Badez wrote:
> wChapterSelection = QtGui.QDialog()
> wChapterSelection.exec_()
>
> And I've got also a bus error.
>
> What really suprise me, is that I already use QDialog elsewhere, and I
> didn't had any problem with this.

app = QApplication(sys.argv)
wChapterSelection = QtGui.QDialog()
wChapterSelection.show()
app.exec_()

would work.
I am a newbie to PyQt4, so I don't know whether you can just run a widget 
itself  without creating an application first - but if you do, it works

Horst

-- 
The answer to problems created by coercive government is always more 
government.

    Cat Farmer


More information about the PyQt mailing list