469,592 Members | 1,713 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

wxPython with directpython

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
3 1763
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
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
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.

Similar topics

1 post views Thread by timothy.williams | last post: by
reply views Thread by Robin Dunn | last post: by
1 post views Thread by Jérôme Le Bougeant | last post: by
reply views Thread by vedran | last post: by
1 post views Thread by vedran | last post: by
3 posts views Thread by Gigs_ | last post: by
reply views Thread by ...:::JA:::... | last post: by
reply views Thread by ...:::JA:::... | last post: by
2 posts views Thread by veki | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.