I have a strange problem where I make system calls in a loop
and also update the status bar of my frame after each system call.
Unfortunately, the text does not update properly. I’ll get the first 3
or 4 update text changing and then windows gives me a busy cursor and nothing
happens until the loop is complete. All the work is being done that I request
but the update stops refreshing even with a call to Refresh(True)
I have tried removing the system command and the updates go
further, (up to about 18 out of 22) and then stop but the loop still
continues.
I don’t really have a clue why I can’t regain
control of my status bar and make updates to it. The fact that it works for a
while puzzles me.
I have a strange problem where I make system calls in a loop
and also update the status bar of my frame after each system call.
Unfortunately, the text does not update properly. I’ll get the first 3
or 4 update text changing and then windows gives me a busy cursor and nothing
happens until the loop is complete. All the work is being done that I request
but the update stops refreshing even with a call to Refresh(True)
I have tried removing the system command and the updates go
further, (up to about 18 out of 22) and then stop but the loop still
continues.
I don’t really have a clue why I can’t regain
control of my status bar and make updates to it. The fact that it works for a
while puzzles me.
Anyone have an idea?
Your loop is likely blocking wx’s event loop from making updates to the screen. Depending on what you are doing you could either add a wx.YieldIfNeeded(), or wx.SafeYield() after making your calls to update the status bar.
I have a strange problem where I make system calls in a loop and also update
the status bar of my frame after each system call. Unfortunately, the text
does not update properly. I'll get the first 3 or 4 update text changing
and then windows gives me a busy cursor and nothing happens until the loop
is complete. All the work is being done that I request but the update stops
refreshing even with a call to Refresh(True)
I have tried removing the system command and the updates go further, (up to
about 18 out of 22) and then stop but the loop still continues.
I don't really have a clue why I can't regain control of my status bar and
make updates to it. The fact that it works for a while puzzles me.
Fabulous! Thank you all for helping on this perplexing problem!
-Michael
···
-----Original Message-----
From: wxpython-users-bounces@lists.wxwidgets.org
[mailto:wxpython-users-bounces@lists.wxwidgets.org] On Behalf Of Andrea
Gavana
Sent: Wednesday, November 26, 2008 12:20 PM
To: wxpython-users@lists.wxwidgets.org
Subject: Re: [wxpython-users] update not working
Hi Michael,
On Wed, Nov 26, 2008 at 5:11 PM, Michael Toth wrote:
I have a strange problem where I make system calls in a loop and also
update
the status bar of my frame after each system call. Unfortunately, the
text
does not update properly. I'll get the first 3 or 4 update text changing
and then windows gives me a busy cursor and nothing happens until the loop
is complete. All the work is being done that I request but the update
stops
refreshing even with a call to Refresh(True)
I have tried removing the system command and the updates go further, (up
to
about 18 out of 22) and then stop but the loop still continues.
I don't really have a clue why I can't regain control of my status bar and
make updates to it. The fact that it works for a while puzzles me.
On Wed, Nov 26, 2008 at 5:11 PM, Michael Toth wrote:
I have a strange problem where I make system calls in a loop and also
update
the status bar of my frame after each system call. Unfortunately, the
text
does not update properly. I’ll get the first 3 or 4 update text changing
and then windows gives me a busy cursor and nothing happens until the loop
is complete. All the work is being done that I request but the update
stops
refreshing even with a call to Refresh(True)
I have tried removing the system command and the updates go further, (up
to
about 18 out of 22) and then stop but the loop still continues.
I don’t really have a clue why I can’t regain control of my status bar and
make updates to it. The fact that it works for a while puzzles me.