Phil Thompson <[EMAIL PROTECTED]> wrote:
>>> James proposed this solution: >>> >>> def slotWhatever(self): >>> dlg = MyModalDialog(self) >>> sip.transfer(dlg, 0) >>> if dlg.exec_loop() == QDialog.Accepted: >>> return dlg.data() >>> return None >>> >>> and then proposed to hardcode the transfer() call within the %MethodCode >>> for >>> QDialog.exec_loop. I'll remember you that exec_loop is called only for >>> modal >>> dialogs, while for modeless dialogs show() is called. > Ok, this is in tonight's PyQt snapshot. Thanks! Remember to document it properly! -- Giovanni Bajo _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde