[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Issue with QDialog and lifetime
From: Toby Dickenson <tdickenson () devmail ! geminidataloggers ! co ! uk>
Date: 2005-05-26 10:44:06
Message-ID: 200505261144.07045.tdickenson () devmail ! geminidataloggers ! co ! uk
[Download RAW message or body]
On Thursday 26 May 2005 11:24, Giovanni Bajo wrote:
> class QDialog2(QDialog):
> def __init__(self, parent=0, name=0, modal=False, flags=0)
> QDialog.__init__(self, parent, name, modal, flags |
> Qt.WDestructiveClose)
That works, but Im not sure I would recommend it. It leads to a bigger change
should you ever need to access the dialog after it has been closed. (or, more
likely, the value of a control widget on the dialog)
You are right that the C++ handles this better than either python solution :-(
--
Toby Dickenson
_______________________________________________
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