wxPython with directpython

V

vedrandekovic

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
 
K

kyosohma

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
 
V

vedrandekovic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top