Author Topic: Make an "Hello World" with python2.5 and pygame  (Read 2362 times)

Monstercrunch

  • Guest
Make an "Hello World" with python2.5 and pygame
« on: February 24, 2011, 11:18:39 pm »
Hi guys  ;), I'have a Dingoo that runs dingux and now I would like to make some programs in python with the pygame libraire. I downloaded Python2.5_dingux_bin_v3.zip and pygame-1.9.1-dingux-v2.zip on Science's website,  but now I don't know what I have to do ?

-where I have to put each folder on my Dingoo ?
-after the folders are in place, were I have to put my programs ?
-which extensions for the files ? ( I made programs in python on Ubuntu that doesn't need extensions, is it the same situation for Dingux ?)

And finally, how can I run the program ?

If you can explain me each points I would be very nice ( from installing the folders to run a program that displays a "Hello World" picture).

Thanks a lot, but keep in mind that I'm french, so use simple sentences  :-*

Bye +

Monstercrunch

  • Guest
Re: Make an "Hello World" with python2.5 and pygame
« Reply #1 on: February 25, 2011, 07:34:35 pm »
Nobody knows ?

SiENcE

  • **
  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: Make an "Hello World" with python2.5 and pygame
« Reply #2 on: February 26, 2011, 09:29:50 pm »
Extract Python2.5_dingux_bin_v3.zip and copy to "local" folder over your SD-Card.

SDCARD:
local\bin
local\include
local\lib
...

Than copy pygame-1.9.1-dingux-v2.zip to your SD-Card into the following folder:

SDCARD: local\lib\python2.5\site-packages\

should look like:
SDCARD: local\lib\python2.5\site-packages\pygame

You need to export the following to your environment that Python Apps can detect your Python:
Code: [Select]
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Here is an example how to start a pyGame via Shell script:

barbie.sh
Code: [Select]
#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
./run_game.py

Monstercrunch

  • Guest
Re: Make an "Hello World" with python2.5 and pygame
« Reply #3 on: February 28, 2011, 04:54:47 pm »
Thanks for this response !

 

Post a new topic