Need a Refresh/Update alternative for GTK to force repaint of window

Right now I have this:

def OnKeyDown(self, event):
     self.status.SetLabel('Loading...')
     self.Refresh(1)
     self.Update()
     ret = os.system('...')

Now in the above, on Windows It says 'Loading' and
than the app I exec via system() comes up and takes
over the screen. As it should. On Linux I do not see
'Loading' until after the app is done executing. What
can I do to get the same behavior I get on Windows? I
am using wxPython 2.6.1.0

···

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Sáb, 2005-07-02 às 06:50 -0700, aa bb escreveu:

Right now I have this:

def OnKeyDown(self, event):
     self.status.SetLabel('Loading...')
     self.Refresh(1)
     self.Update()
     ret = os.system('...')

Now in the above, on Windows It says 'Loading' and
than the app I exec via system() comes up and takes
over the screen. As it should. On Linux I do not see
'Loading' until after the app is done executing. What
can I do to get the same behavior I get on Windows? I
am using wxPython 2.6.1.0

Try a wx.Yield() or a wx.SafeYield() instead of Refresh/Update.

Ricardo

Thank you. That worked.

--- Ricardo Pedroso <ricardo.pedroso@netvisao.pt>
wrote:

···

Sáb, 2005-07-02 às 06:50 -0700, aa bb escreveu:
> Right now I have this:
>
> def OnKeyDown(self, event):
> self.status.SetLabel('Loading...')
> self.Refresh(1)
> self.Update()
> ret = os.system('...')
>
> Now in the above, on Windows It says 'Loading' and
> than the app I exec via system() comes up and
takes
> over the screen. As it should. On Linux I do not
see
> 'Loading' until after the app is done executing.
What
> can I do to get the same behavior I get on
Windows? I
> am using wxPython 2.6.1.0

Try a wx.Yield() or a wx.SafeYield() instead of
Refresh/Update.

Ricardo

---------------------------------------------------------------------

To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around