Brian Fisher | 4 Apr 2006 08:38
Favicon

Re: Editor / Color Picker question

On 3/24/06, Horst F. JENS <horst.jens@...> wrote:
> Wich Editor/IDE do you use for coding pygame ?
>
I love using pydev, a plugin for eclipse that adds python editing.
Pydev has always been solid and useful, yet has always been getting
better and better. If subversion integration is important to you, you
can get it through subclipse (a different eclipse plugin) - I've tried
every python editor I could find, but the subversion integration in
eclipse is what really sold me on going with pydev. I haven't tried
pydev extensions (the pay upgrade from pydev)

Richard Jones | 5 Apr 2006 01:37
Picon

New wiki page for your consideration

http://www.pygame.org/wiki/distributing

Peter Shinners | 5 Apr 2006 10:27
Favicon
Gravatar

Fwd: Parachute when assigning video surface

-----------------------------------------------
Date: Wed, 05 Apr 2006 10:14:43 +0200
From: Joan Planas

Hello everybody:

I'm trying to get images over video with Pygame and I try to follow
what 
it seems to be the best:

offscreen = pygame.Surface(movie.get_size())
movie.set_display(offscreen)
movie.play()

Where 'movie' is initialised, and it works with the screen as target. 
I've been searching for a week and everybody says it works.
I'm working on a Mandriva 2006 , python 2.4 and pygame 1.7.1.

Thanks.

Button-2 Emulation on MSWin

Greetings,

I'm trying to bring pysweeper up to the functionality of
the native MS Windows minesweeper.

I see this comment on the pygame.mouse page:

> This effect (1 + 3 = 2) is caused by your X.org/XServer
> mouse configuration section, which allows to emulate the
> middle button by clicking both the left and right mouse
> button at the same time.

Anyone know why this doesn't work on MSWin?

Thanks in advance,

--jim

James Paige | 5 Apr 2006 17:59
Favicon

Re: Button-2 Emulation on MSWin

On Wed, Apr 05, 2006 at 10:17:18AM -0500, jim@... wrote:
> Greetings,
> 
> I'm trying to bring pysweeper up to the functionality of
> the native MS Windows minesweeper.
> 
> I see this comment on the pygame.mouse page:
> 
> >This effect (1 + 3 = 2) is caused by your X.org/XServer
> >mouse configuration section, which allows to emulate the
> >middle button by clicking both the left and right mouse
> >button at the same time.
> 
> Anyone know why this doesn't work on MSWin?
> 
> Thanks in advance,
> 
> --jim

middle button emulation (left+right=middle) is provided by the X-server, 
which does not exist at all on Windows. If you want the same feature on 
Windows, you need to check for both buttons manually yourself (that is 
better for GNU/Linux also, since not all X-windows configurations 
are guaranteed to have middle button emulation enabled)

---
James Paige

Luke Paireepinart | 5 Apr 2006 19:07
Picon
Gravatar

Re: New wiki page for your consideration

Richard Jones wrote:
> http://www.pygame.org/wiki/distributing
>
>   
Thanks Richard!
I added thar links for you.
cheers.
-Luke

Luke Paireepinart | 5 Apr 2006 19:10
Picon
Gravatar

Re: Button-2 Emulation on MSWin

James Paige wrote:
> On Wed, Apr 05, 2006 at 10:17:18AM -0500, jim@... wrote:
>   
>> Greetings,
>>
>> I'm trying to bring pysweeper up to the functionality of
>> the native MS Windows minesweeper.
>>
>> I see this comment on the pygame.mouse page:
>>
>>     
>>> This effect (1 + 3 = 2) is caused by your X.org/XServer
>>> mouse configuration section, which allows to emulate the
>>> middle button by clicking both the left and right mouse
>>> button at the same time.
>>>       
>> Anyone know why this doesn't work on MSWin?
>>
>> Thanks in advance,
>>
>> --jim
>>     
>
> middle button emulation (left+right=middle) is provided by the X-server, 
> which does not exist at all on Windows. If you want the same feature on 
> Windows, you need to check for both buttons manually yourself (that is 
> better for GNU/Linux also, since not all X-windows configurations 
> are guaranteed to have middle button emulation enabled)
>
> ---
(Continue reading)

Horst F. JENS | 5 Apr 2006 20:59
Picon
Picon

Re: New wiki page for your consideration

Richard Jones wrote:
> http://www.pygame.org/wiki/distributing
> 

Very good ! Applause !

Re: Button-2 Emulation on MSWin

Luke Paireepinart wrote:
> ... 
> Yes, thank you James, you confirmed my suspicions.
> the code I sent should work, then, in all cases, jim.
> cheers.
> -Luke

Luke, where did you send the code?

Thanks everybody!

--jim

evilmrhenry | 5 Apr 2006 23:55

BUG: Pygame hangs when finding system font

x86, Linux, Debian, Testing.
Python 2.3.5 and 2.4.2
Pygame 1.7.1

Code:
import pygame
pygame.init()
pygame.font.init()
pygame.font.SysFont('Arial', 50, bold=True)

The last line hangs forever on my machine. Ctrl-C gives:
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.3/site-packages/pygame/sysfont.py", line 271, 
in SysFont
     fontname = styles.get((bold, italic))
KeyboardInterrupt

It's not always that line, but always within the while loop that 
encloses that line.

pygame.font.get_fonts() returns
['bitstreamverasans', 'wasy10', 'bitstreamverasansmono', 'msbm10', 
'msam10', 'opensymbol', 'cmsy10', 'cmr10', 'bitstreamveraserif', 
'cmmi10', 'cmex10']

The following lines *do* work:
pygame.font.SysFont('test', 50, bold=True)
pygame.font.SysFont('Arial', 50)

(Continue reading)


Gmane