Re: [pygame] Pygame Subset for Android 0.9.3 Released

2011-05-08 Thread stas zytkiewicz
On Mon, May 2, 2011 at 1:47 AM, Tom Rothamel wrote: > We've released version 0.9.3 of the Pygame Subset for Android to: >     http://pygame.renpy.org/ > as well as the Android Market. This new release adds the following features: > * Python has been upgraded to version 2.7.1. > * Better support fo

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
also try to install the SDL font... anyway keep >> trying :) >> >>> WARNING, No "Setup" File Exists, Running "config.py" >>> Using UNIX configuration... >>> >>> >>> Hunting dependencies... >>> SDL : found 1.2.14

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
se" for more information. >> >>> import pygame >> >>> import pygame.font >> Traceback (most recent call last): >>   File "", line 1, in >> ImportError: No module named font >> >>> > > It seems to be pretty similar a

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
||/ Nom >> Version    Description >> >> +++-==-==-==== >> ii  python-pygame >> 1.8.1release-2+b1

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
n or set FRAMEBUFFER environment >> variable. >> (!) DirectFB/Core: Could not initialize 'system' core! >>     --> Initialization error! >> Traceback (most recent call last): >>   File "fonty.py", line 100, in >>     if __name__ == '_

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI wrote: > Hi everyone, > > i currently using a Debian squeeze and i would like to run some application > i have written before but it seems that the font module is not found. Hi, I'm running squeeze also and it's my experience that python 2.7, which

Re: [pygame] freetype module

2011-01-13 Thread stas zytkiewicz
s (XP/Vista). So I agree with Marcus that it would be a bad idea. Regards, Stas Zytkiewicz -- Free-source educational programs for schools http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot

Re: [pygame] Pygame Subset for Android 0.9.1

2011-01-07 Thread stas zytkiewicz
On Fri, Jan 7, 2011 at 10:40 PM, Tom Rothamel wrote: > On Thu, Jan 6, 2011 at 1:35 PM, stas zytkiewicz > wrote: >> The python module Configparser isn't included, is it possible to include >> it ? > > I haven't figured out which parts of the standard library sho

Re: [pygame] Pygame Subset for Android 0.9.1

2011-01-06 Thread stas zytkiewicz
ou plan on providing some "cookbook" for code samples and examples ? I suspect we run into problems that would have some common solutions and it would be nice to post them somewhere. The python module Configparser isn't included, is it possible to include it ? Is there support for th

Re: [pygame] Re: Pygame for Android

2010-12-15 Thread stas zytkiewicz
On Wed, Dec 15, 2010 at 12:23 AM, Tom Rothamel wrote: > I've released a new version (0.9) of the Pygame Subset for Android, Great thanks. [..] >- It works in the emulator, as well as anything works in the emulator > (that is, slowly). While it's still better to test on an actual > device, the em

Re: [pygame] Pygame for Android

2010-12-07 Thread stas zytkiewicz
On Mon, Dec 6, 2010 at 5:39 AM, Tom Rothamel wrote: > Again, this hasn't been tested on may devices - so feedback is > encouraged. I'll try to get the full source code up shortly. I've tried it on the android emulator, 2.1-update1 API level 7 but it crashes hard: I/ActivityManager( 54): Start

Re: [pygame] Pygame for Android

2010-12-06 Thread stas zytkiewicz
On Mon, Dec 6, 2010 at 4:49 PM, Stuart Axon wrote: > On 6 December 2010 04:39, Tom Rothamel wrote: >> For the past month or so, I've been porting Ren'Py to the Android >> platform. A few days ago, I had the first success. This required >> porting Python and Pygame to Android. (I used an existing

Re: [pygame] Whatever happend to movieext ?

2010-08-02 Thread stas zytkiewicz
dule > replacement is _movie, but it is still in development. I thought it was part of pygame some time ago and was wondering if it was removed or if it's just hard to find. Stas > Lenard Lindstrom > > On 02/08/2010 7:37 AM, stas zytkiewicz wrote: >> >> Hi, I'

[pygame] Whatever happend to movieext ?

2010-08-02 Thread stas zytkiewicz
Hi, I'm battling the pygame.movie object (parachute, segfaults etc) and I was wondering what happend to the movieext module. I seem to remember that it was part of pygame some time ago but I can't find it. Thanks, Stas -- Free-source educational programs for schools http://www.schoolsplay.org  a

Re: [pygame] Re: Sprite Surface very slow to draw

2010-07-20 Thread stas zytkiewicz
On Tue, Jul 20, 2010 at 10:39 AM, SurferIX wrote: > If found the solution! > The problem is that the documentation needs examples (or maybe I > didn't find good ones): You should look at the pygame reference doc: http://www.pygame.org/docs/ref/index.html > I was using: >  40         self.image.co

Re: [pygame] using pil to covert rgb into grayscale

2010-04-29 Thread stas zytkiewicz
On Thu, Apr 29, 2010 at 5:36 PM, Casey Duncan wrote: > If you are going to roll your own, at least use the standard luminance > calculation: > > L = 0.3 * red + 0.59 * green + 0.11 * blue > > hth, Thanks for the quick reply guys. I combined your answers and it works perfectly :-) Here's the code

[pygame] using pil to covert rgb into grayscale

2010-04-29 Thread stas zytkiewicz
Hello, I'm trying to convert a RGB image into a grayscaled image using PIL but pygame keeps throwing this error: "ValueError: Buffer length does not equal format and resolution size" Why this code doesn't work, I have no idea :-( ('surf' is a pygame.Surface) pilimg = Image.fromstring('RGBA', sur

Re: [pygame] Blitting image with alpha channel on a transparent background

2010-04-22 Thread stas zytkiewicz
On Fri, Apr 23, 2010 at 2:59 AM, Greg Ewing wrote: > Lee Buckingham wrote: >> >> Instead of using set_alpha(), try using a fill, like: >> >>  backgroundsurface.fill((0,0,0,100)) > > Note that you will also have to create the background surface with > the SRCALPHA flag, so that it will have a per-p

Re: [pygame] Blitting image with alpha channel on a transparent background

2010-04-22 Thread stas zytkiewicz
On Thu, Apr 22, 2010 at 6:56 PM, Lee Buckingham wrote: > As far as the alpha goes, my guess is that you're getting hung up because > you've mixed two different alpha modes.  There's some caveats about using > per-pixel alpha (like the .png file probably has) and the other modes (color > key or si

[pygame] Blitting image with alpha channel on a transparent background

2010-04-22 Thread stas zytkiewicz
Hello, I hope that someone can point me in the right direction. I have a semi transparent background surface created with set_alpha(100). On this surface I want to blit an png image which has a alpha channel. The problem is that when I blit the png image surface to the background surface the png im