Re: [PyKDE] destructor not getting called?

2002-11-09 Thread Detlev Offenbach
Am Freitag, 8. November 2002 16:38 schrieb Kaleb Pederson: ... Maybe I was just lucky, and have the QSettings object call the destructor. Anyway, it's one part of my application where I've never had problems. Maybe. My settings had been working great for the last couple months, as

Re: [PyKDE] destructor not getting called?

2002-11-08 Thread Greg Fortune
On Friday 08 November 2002 12:44 am, you wrote: On Fri, 2002-11-08 at 01:50, Kaleb Pederson wrote: I'm using a global QSettings object throughout my application. For some reason, when the program closes, the destructor on my QSettings object is not getting called. As it is the destructor

Re: [PyKDE] destructor not getting called?

2002-11-08 Thread Greg Fortune
On Friday 08 November 2002 01:59 am, Fredrik Juhlin wrote: On Fri, 2002-11-08 at 10:34, Greg Fortune wrote: On Friday 08 November 2002 12:44 am, you wrote: The reason you're having problems is most likely because there is no such thing as a destructor in Python. I assume that you, like

Re: [PyKDE] destructor not getting called?

2002-11-08 Thread Boudewijn Rempt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 08 November 2002 15:38, you wrote: I agree that it shouldn't be the only way to go. I would definitely prefer to have a function that I can call that would write to disk. The source code reveals, however, that a sync() call is only

RE: [PyKDE] destructor not getting called?

2002-11-08 Thread Kaleb Pederson
On Friday 08 November 2002 07:42, Kaleb Pederson wrote: On Thursday 07 November 2002 10:14 pm, Boudewijn Rempt wrote: snip Hmmm... What I do is to create a Python class with the settings as member variables. That makes it easier. But still, the Qt documentation says: A typical usage pattern

Re: [PyKDE] destructor not getting called?

2002-11-07 Thread Kaleb Pederson
On Thursday 07 November 2002 10:14 pm, Boudewijn Rempt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It might be my Java heritage, but I've never trusted destructors... Couldn't you just connect the LastWindowClosed signal to the save method? Why I personally to is to write the

Re: [PyKDE] destructor not getting called?

2002-11-07 Thread Boudewijn Rempt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 08 November 2002 07:42, Kaleb Pederson wrote: On Thursday 07 November 2002 10:14 pm, Boudewijn Rempt wrote: It might be my Java heritage, but I've never trusted destructors... Couldn't you just connect the LastWindowClosed signal to