|
From: Christopher B. <Chr...@no...> - 2006-03-10 20:57:09
|
Ken McIvor wrote:
> My take on this is that wxPython-mac can't repaint the plot window if
> it's not running its event loop.
This might have something to do with the fact that OS-X double buffers
it's windows, so you need to force and update event somehow. A call to
wx.Window.Refresh() and/or wx.Window.Update() might do it. However, I
haven't had any problem with just using a wxClientDC in my apps, but I
guess I've always been running an event loop. Maybe OS-X waits for a
Idle event to update the screen.
What kind of app would you have running without an event loop anyway? Id
didn't think you could do much at all without one in wx.
> Since wxPython-mac is built on top of Cocoa, I'd imagine Cocoa has
> similar repainting problems.
wxPython-mac is built in Carbon, not Cocoa, but they do both use Quartz
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|