Freeze/Thaw questions

Hi,

I have try to use the Freeze/Thaw, but I bumped into the following problem:
I can't nest Freeze/Thaw calls.

For example, I can't do this:

class FooBar(wx.XXX):

    def foo(self):
        self.Freeze()
        ...
        self.Thaw()

    def bar(self):
        self.Freeze()
        self.foo()
        self.Thaw()

Actually I can, but the result is not that that I want. What I want is to
have a single final thaw.

Can the Freeze and Thaw increment and decrement an internal counter and thaw
only when this counter drops bellow zero ?

This way I could always use Freeze() and Thaw() in the methods I know that
can have ugly drawing effects, like flicker, and still call Freeze and Thaw
without worry in the higher level methods. With the current implementation I
am forced to call Freeze and Thaw only in the bar, but not in the foo
method.

From what I understand, the busy cursor is doing something similar and I

think that the Freeze/Thaw methods should do the same.

TIA,

Ionutz

I have submitted a FR (with number 810590).

Ionutz

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Friday, September 19, 2003 22:56
Subject: Re: [wxPython-users] Freeze/Thaw questions

I thought it was already, but a quick check of the code shows that it
isn't... You can submit a feature request or a patch for this.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!