On 18 kol, 15:35, [EMAIL PROTECTED] wrote: > On Aug 18, 8:08 am, [EMAIL PROTECTED] wrote: > > > > > Hello, > > > I'am using DirectPython 0.8, wxPython 2.8.4.2 (ansi) for Python 2.5 > > and I'm running it on windows XP SP2. > > When I run my wx program, and this program run directpython code: > > > (I run it under wx frame) > > > example code: > > > import d3dx > > fr=d3dx.Frame(unicode("My frame")) > > fr.mainloop() > > > .....this code run some d3dx frame, and when I close this d3dx frame > > it close my whole program ( and wx frame). > > > Regards, > > Vedran > > You need to post some more code, preferably the function that calls > the directx stuff. And how do you catch the close event? It sounds > like you've got multiple objects bound to it which causes the entire > program to close. You might consider running the directx stuff in a > separate thread. > > Mike
Hi, no,that's all code I've got,I mean it's all code that I run with my program for now. >You might consider running the directx stuff in a separate thread. How? Regards, Vedran -- http://mail.python.org/mailman/listinfo/python-list