On Nov 28, 2007 12:00 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > But you can do this inside your dialog class. Just override the accept > and reject methods and do whatever logic you have their. > > It doesn't make sense to have a modal dialog without another window > (i.e. in your __main__ function), as then its not really modal. And > making a modal dialog is exactly what the exec_() does. > > Andreas
Exactly, but in this case, I need a modal dialog, that why I use the exec_. In fact, my problem is not really how to use a QDialog, I already use some QDialog (modal with the exec_) and they work great. My problem is what can make a "Bus Error" when I just simply want to create a QDialog (even the simplest one). -- Alex http://alexandre.badez.googlepages.com/ [EMAIL PROTECTED]
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
