By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,172 Members | 727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,172 IT Pros & Developers. It's quick & easy.

wxPython with directpython

P: n/a
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

Aug 18 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Aug 18, 8:08 am, vedrandeko...@v-programs.com 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

Aug 18 '07 #2

P: n/a
On 18 kol, 15:35, kyoso...@gmail.com wrote:
On Aug 18, 8:08 am, vedrandeko...@v-programs.com 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

Aug 18 '07 #3

P: n/a
On Aug 18, 9:46 am, vedrandeko...@v-programs.com wrote:
On 18 kol, 15:35, kyoso...@gmail.com wrote:
On Aug 18, 8:08 am, vedrandeko...@v-programs.com 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
Check out this link for more information on running stuff in another
thread:
http://wiki.wxpython.org/LongRunning...longrunning%29

Mike

Aug 18 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.