473,574 Members | 2,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(u nicode("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 1877
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(u nicode("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(u nicode("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(u nicode("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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2557
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have everything. The make install in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/ directory libwx_base-2.5.so@ ...
0
1651
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this version, many of which are listed below and at http://wxpython.org/recentchanges.php. What is wxPython?
1
1988
by: Jérôme Le Bougeant | last post by:
Hello, I have DirectPython 0.5 (http://directpython.sourceforge.net/) and python2.4 (directx9.0C installed). Samples do not work, I have this error : "RuntimeError: Failed to create a device" For example with sampleBasic.py : Traceback (most recent call last): File "sampleBasic.py", line 147, in ?
0
1036
by: vedran | last post by:
Hello, I using directpython for making 3d miniature applications,but I have one problem about directpython. This is my code for example: import d3d import d3dc import d3dx
1
1416
by: vedran | last post by:
Hello, How can I move objects in directpython???
3
2468
by: Gigs_ | last post by:
can someone tell me which is better for making 3d game in python. something like tennis simulation thx
0
1187
by: ...:::JA:::... | last post by:
Hello, I have problem with building directpython ( .exe ) application , actually when I finish building application and when I run it, in log file I get an error: Traceback (most recent call last): File "sampleMeshAnim.py", line 16, in ?
0
1452
by: ...:::JA:::... | last post by:
Hello, Is there any real easy example for loading an texture in your directpython window??? For example this is my code: # loading directpython modules import d3dx import d3d from d3dc import *
2
1464
by: veki | last post by:
Hello, I've got IBM Thinkpad 30 laptop with configuration: IBM Thinkpad R30 P3 Mobile Celeron 900mhz 128mb sdram pc133 15gb hdd cd-rom Teac cd-224e 56K V.90/92 10/100 Ethernet
0
7815
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7738
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8077
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6476
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5316
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3765
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2253
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.