[PyKDE] Calling slots
phil at riverbankcomputing.co.uk
Mon Dec 6 15:01:36 GMT 2004
> 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++.
More information about the PyQt