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