On 5/2/12 12:03 PM, redxine wrote:
> I've gotten the loading time for my program up to nearly 8 seconds and
> saw it fit to add a splash screen. I've already looked at
>
http://wiki.wxpython.org/SplashScreen and have a working splash
> instance, and used the info from
>
http://wiki.wxpython.org/LongRunningTasks to decide to place the entire
> panel into a new thread while my program initializes.
>
> From what I can tell the splash screen works fine, and the threading
> works as expected, passing control back so I can do my app =
> MyApp(False), however the whole thing goes downhill in MyApp.OnInit when
> I load the XRC resources with xrc.XmlResource(). The error itself is
> actually different every time, and sometimes it just hangs, so I'm
> completely lost here.
>
> python: Fatal IO error 11 (Resource temporarily unavailable) on X
> server :0.0.
>
> python: Fatal IO error 2 (No such file or directory) on X server :0.0.
>
> - and sometimes a generic X error message (I don't have X11 debugging
> turned on).
>
> My code's on github:
https://github.com/jkltechinc/Taxidi/tree/experimental
You can only create or manipulate UI objects from the GUI thread. You