[PyKDE] Issue with QDialog and lifetime
Giovanni Bajo
rasky at develer.com
Mon Jul 25 19:36:14 BST 2005
Phil Thompson <phil at riverbankcomputing.co.uk> 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
More information about the PyQt
mailing list