Is wx.BusyInfo() supposed to work?

I can't seem to get wx.BusyInfo() working on Gtk, for wx2.6 and 2.8. It shows an ugly grey window centered on my screen, but doesn't include the text I pass to it.

···

--
pkm ~ http://paulmcnett.com

Paul McNett wrote:

I can't seem to get wx.BusyInfo() working on Gtk, for wx2.6 and 2.8. It shows an ugly grey window centered on my screen, but doesn't include the text I pass to it.

I've seen this too. I think it is not getting a paint event or something like that. I saw some workarounds that somebody did in Chandler where they called wx.Yield after creating the BusyInfo object. I've been meaning to add a call to Update in the C+ code to see if that helps but I haven't gotten to it yet.

···

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

Robin Dunn wrote:

Paul McNett wrote:

I can't seem to get wx.BusyInfo() working on Gtk, for wx2.6 and 2.8. It shows an ugly grey window centered on my screen, but doesn't include the text I pass to it.

I've seen this too. I think it is not getting a paint event or something like that. I saw some workarounds that somebody did in Chandler where they called wx.Yield after creating the BusyInfo object. I've been meaning to add a call to Update in the C+ code to see if that helps but I haven't gotten to it yet.

Bingo, the wx.Yield() allows the text to get painted.

···

--
pkm ~ http://paulmcnett.com

Paul McNett wrote:

Robin Dunn wrote:

Paul McNett wrote:

I can't seem to get wx.BusyInfo() working on Gtk, for wx2.6 and 2.8. It shows an ugly grey window centered on my screen, but doesn't include the text I pass to it.

I've seen this too. I think it is not getting a paint event or something like that. I saw some workarounds that somebody did in Chandler where they called wx.Yield after creating the BusyInfo object. I've been meaning to add a call to Update in the C+ code to see if that helps but I haven't gotten to it yet.

Bingo, the wx.Yield() allows the text to get painted.

The other thing is that the wxWidgets docs show an optional parent argument, but when I try to use it I get:

TypeError: new_BusyInfo() takes exactly 1 argument (2 given)

···

--
pkm ~ http://paulmcnett.com

Paul McNett wrote:

The other thing is that the wxWidgets docs show an optional parent argument, but when I try to use it I get:

TypeError: new_BusyInfo() takes exactly 1 argument (2 given)

Thanks for spotting that. I've added it.

···

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