[PyKDE] Calling slots

2004-12-06 Thread Hihn, Jason








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?



Thanks.









__
This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message.  If you have received this electronic message in error, please notify us by replying to this e-mail. (1)
___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] Calling slots

2004-12-06 Thread Phil Thompson

 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