>
> I have a button that used to be connected to accept() on a dialog. I
> added some validation, and only want to call accept() now if the
> validation passes. I tried calling dlg.accept() but I got the message
> that it is not callable because it was not created in python.
>
>
>
> What is the work around?

QDialog::accept() is protected so it has to be exposed as public by a
sub-class. This is handled automatically by SIP for QDialogs created from
Python. Otherwise you will have to do it yourself in C++.

Phil

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to