473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

intigrate the PyGame module with my Python

I want to intigrate the PyGame module with my Python exe,
means i DONT want to generate .PYD files separtely rather than that
want to put PyGame "c" src with Python workspace of VC project
workspace.
I am unable to import the sub modules( display, rect etc) of pygame,
its raising errors,
am giving the steps i followed, plz help me in this case

I am stuck at the "pygame" embedding using microsoft visual c++ under
win2000 os.
Formarly I have done following activities :

1. Downloaded the windows binary for python 1.5.2 from python.org.
2. Downloaded the sdl windows binary package from pysdl.org.
3. successfully integrated the sdl library into the python15 project.
A sample py script was tested successfully.

4. Downloaded pygame 1.6 source from pygame.org.
5. Integrated the code into vc project.
6. On similar lines to sdl, the necessary changes were done
( as pygame happens to be successor to sdl).
Initially, the pygame module was not being recognized by the
environment.
Regards,

Devendra

Jul 18 '05 #1
3 2586
de********@citilindia.com wrote:
I want to intigrate the PyGame module with my Python exe,
means i DONT want to generate .PYD files separtely rather than that
want to put PyGame "c" src with Python workspace of VC project
workspace.
I am unable to import the sub modules( display, rect etc) of pygame,
its raising errors,
am giving the steps i followed, plz help me in this case

I am stuck at the "pygame" embedding using microsoft visual c++ under
win2000 os.
Formarly I have done following activities :

1. Downloaded the windows binary for python 1.5.2 from python.org.
2. Downloaded the sdl windows binary package from pysdl.org.
3. successfully integrated the sdl library into the python15 project.
A sample py script was tested successfully.

4. Downloaded pygame 1.6 source from pygame.org.
5. Integrated the code into vc project.
6. On similar lines to sdl, the necessary changes were done
( as pygame happens to be successor to sdl).
Initially, the pygame module was not being recognized by the
environment.
Regards,

Devendra


You don't want to put the Pygame files in the pythonxy.exe (where xy is
your version number) file, but rather the pythonxy.dll file.
Jul 18 '05 #2
1. Downloaded the windows binary for python 1.5.2 from python.org.


Pygame uses Python 1.5.2 still!? :-) Oi.

Warren
Jul 18 '05 #3
Warren Postma wrote:
1. Downloaded the windows binary for python 1.5.2 from python.org.

Pygame uses Python 1.5.2 still!? :-) Oi.


Nah, must have been a typo, as www.pygame.org lists Windows installers for
Python 2.2, 2.3, and 2.4:

http://www.pygame.org/download.shtml

-Dave
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1597
by: JDR | last post by:
Would anyone happen to know of a way to strip out the joystick module of Pygame? I've written a console based application that doesn't need X, mixer, fonts, etc. and I can't get my application to...
8
2521
by: Askari | last post by:
(Help for Pygame module) Hi, How I can make a "fadeout text"(alpha at 255,254,253...0) on a surface and my surface's background must be transparatly? Note : I can do a fadeout but with a...
3
3696
by: Tim Knauf | last post by:
Hi everyone, I'm glad to have found this list. I've written a small script for my own use which, amongst other things, captures mouse click information from a window containing an image. I used...
1
3213
by: kjm | last post by:
Hi everyone, I have recently acquired a Logitech Rumble pad to use as an input device. I have been having trouble getting the event que to respond that a button or hat arrow has been pressed. ...
1
6777
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
5
1646
by: enquiring mind | last post by:
Running 2.4.1 Python (learning) Running SUSE Linux 10 Am learning from a new books that mostly deals with windows python and Pygames called "Game Programming" by Randy Harris (2007) His books...
1
5838
by: zswartz | last post by:
Hi All, I've been stuck here for some time now and can't figure this out. If ANYONE can assist me, that would be AMAZING!! I have Windows XP, with Python 25 and Pygame for python 25. I am also...
4
5856
kaarthikeyapreyan
by: kaarthikeyapreyan | last post by:
I have installed pygame v 1.8.0 The installation was sucessful, but the optional packages were not included like the font,movie etc When i was trying to run the sample script that was given it...
0
1049
by: L. Lindstrom | last post by:
I build the Pygame releases for Windows. Pygame wraps the Simple Directmedia Layer (SDL) C library. I am doing preliminary research into porting Pygame to Python 2.6. For Pythons 2.4 and 2.5 the...
0
7274
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,...
0
7323
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...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4670
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...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
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 ...
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.