On Jan 12, 2009, at 8:46 PM, James Paige wrote:
On Mon, Jan 12, 2009 at 04:54:38PM -0800, Lenard Lindstrom wrote:
Hi,
James Paige wrote:
The only bad thing I can say about it is that it simply doesn't
work :(
f = pygame.font.Font(None, 12)
f.size = 12
Traceback (most recent call last)
On Mon, Jan 12, 2009 at 04:54:38PM -0800, Lenard Lindstrom wrote:
> Hi,
>
> James Paige wrote:
> >The only bad thing I can say about it is that it simply doesn't work :(
> >
> >
> f = pygame.font.Font(None, 12)
> f.size = 12
>
> >Traceback (most recent call last):
> > File
oh. Thanks for your help!
--- On Sun, 1/11/09, Jake b wrote:
From: Jake b
Subject: [pygame] Re:
To: pygame-users@seul.org
Date: Sunday, January 11, 2009, 3:09 PM
-Inline Attachment Follows-
You need to call the parent class's init function:
class basicsprite(pygame.sprite.Sprite): #
Hi,
James Paige wrote:
The only bad thing I can say about it is that it simply doesn't work :(
f = pygame.font.Font(None, 12)
f.size = 12
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'pygame.font.Font' object attribute 'size' is read-only
And that is
I'm also sure that "not working" is hardly a serious issue. =P
-Thiago
On Tue, Jan 13, 2009 at 2:04 AM, James Paige wrote:
> The only bad thing I can say about it is that it simply doesn't work :(
>
f = pygame.font.Font(None, 12)
f.size = 12
> Traceback (most recent call last):
> Fil
The only bad thing I can say about it is that it simply doesn't work :(
>>> f = pygame.font.Font(None, 12)
>>> f.size = 12
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'pygame.font.Font' object attribute 'size' is read-only
And that is not just because Font already ha
You can also just violate the object by giving it an extra attribute:
f = pygame.font.Font(filename, size)
f.new_attribute = size
I'm pretty sure any OO enthusiast would applaud this method. There is
certainly nothing bad that can be said about my method. No sir. =D
-Thiago
On Tue, Jan 13, 2009
Seems to me like this should work:
class SizeFont(pygame.font.Font):
def __init__(self, filename, size):
pygame.font.Font.__init__(self, filename, size)
self.size = size
---
James Paige
On Mon, Jan 12, 2009 at 04:07:11PM -0600, Jake b wrote:
>Create a basic Font() wrapper. Whe
Create a basic Font() wrapper. When you create the font, save the size.
On Mon, Jan 12, 2009 at 2:02 AM, Luca wrote:
> On Sun, Jan 11, 2009 at 10:36 PM, Noah Kantrowitz
> wrote:
>
> >> As far as I know, there's no way to get the size of the font that way.
> >> What I do is name the font names i
Color equality was an oversight I corrected in Pygame 1.9.0.
Lenard
René Dudfield wrote:
hi,
I think that should work... and does in fact work for me...
r = pygame.Color("red")
r == pygame.Color("red")
True
Maybe it is your pygame version? What version do you have? I'm using
René Dudfield wrote:
On Mon, Jan 12, 2009 at 7:34 PM, Lenard Lindstrom wrote:
René Dudfield wrote:
On Thu, Jan 8, 2009 at 4:10 AM, pymike wrote:
[snip]
I've been fiddling around with CherryPy (cherrypy.org), and it's quite
awesome.
(See pymike.pynguins.com) If you wrote it i
On Mon, Jan 12, 2009 at 12:02 AM, Luca wrote:
> Thanks all, but in this way is impossible to get the size on an unknow
> font? I'm making a library for developer that need to know what is the
> font size that the developer can have choosen...
>
> The problem is that SDL does not currently expose
At some point, you're going to have to have a pygame.font.{Sys|}Font() call,
and in that call, you're going to have to specify a size. The developer
will either have to specify a size to load (so the developer already knows)
or load every size. If the latter is the case and choosing an arbitrary
On Mon, Jan 12, 2009 at 7:34 PM, Lenard Lindstrom wrote:
> René Dudfield wrote:
>>
>> On Thu, Jan 8, 2009 at 4:10 AM, pymike wrote:
>>
>>>
>>> I dig the rewriting pygame site in python part. It'd also need a new
>>> fresh
>>> theme (that green... arg! my eyes!). Would it be written in Django? I'v
René Dudfield wrote:
On Thu, Jan 8, 2009 at 4:10 AM, pymike wrote:
I dig the rewriting pygame site in python part. It'd also need a new fresh
theme (that green... arg! my eyes!). Would it be written in Django? I've
been fiddling around with CherryPy (cherrypy.org), and it's quite awesome.
(S
hi,
I think that should work... and does in fact work for me...
>>> r = pygame.Color("red")
>>> r == pygame.Color("red")
True
Maybe it is your pygame version? What version do you have? I'm using
pygame 1.9.0pre (from subversion). The color class changed in pygame
1.8.1.
>>> import pygame
>>>
ok, cool.
On Mon, Jan 12, 2009 at 6:08 PM, Brian Fisher wrote:
> On Sun, Jan 11, 2009 at 9:40 PM, René Dudfield wrote:
>>
>> Indeed. It might be a good idea to try and remove as much of the
>> macosx.py that is there as possible... then try and add in what you
>> need until it is working.
>>
>
On Sun, Jan 11, 2009 at 10:36 PM, Noah Kantrowitz wrote:
>> As far as I know, there's no way to get the size of the font that way.
>> What I do is name the font names in an intuitive way:
>> Font12 = pygame.font.Font("", 12)
>> Font18 = pygame.font.Font("", 18)
>> Font36 = pygame.font.Fo
18 matches
Mail list logo