[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Issue with QDialog and lifetime
From: "Giovanni Bajo" <rasky () develer ! com>
Date: 2005-07-25 18:36:14
Message-ID: 089101c59147$bcfeae00$bf03030a () trilan
[Download RAW message or body]
Phil Thompson <phil@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
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic