http://www.pygame.org/docs/ref/font.html#Font.set_underline
It looks like it may set an underline under all the text rendered using that
Font, so I don't know if it'll work.
On Mon, May 9, 2011 at 12:08 AM, ANKUR AGGARWAL wrote:
> I tried it and google it on the web too. It's not working :(
>
>
You can try pygame.draw.line() to draw a line where you want it under the
text on mouseover:
http://www.pygame.org/docs/ref/draw.html#pygame.draw.line
On Mon, May 9, 2011 at 1:54 AM, Scribble Master wrote:
> http://www.pygame.org/docs/ref/font.html#Font.set_underline
>
> It looks li
Use the rect of each text surface. Then you can get the mouse position with
pygame.mouse.getpos()
http://www.pygame.org/docs/ref/mouse.html#pygame.mouse.get_pos
and check if the mouse's position is in that rect using Rect.collidepoint():
http://www.pygame.org/docs/ref/rect.html#Rect.collidepoint
What is a working ffmpeg command to convert videos for pygame.Movie()?
Using -target ntsc-vcd works, but the bitrate is immutable, which is not
good for higher qualities.
Simply using -vcodec mpeg1video makes pygame.Movie throw
warning: picture block before sequence header block
and not play the vi
Hello all. I'm writing a linked library in C for use with Python, and I
would like to move
SDL Surfaces generated there into Pygame efficiently (Not a pixel-by-pixel
conversion)
Is there any way to point to the SDL Surface pixel data in a pointer from
the linked library
in a pygame Surface or to co
Thank you both for the advice! I think that PySurface_New would work for me.
This may seem a bit stupid, but where can I get the pygame API for C?
I'd just like to note that for any game you write in pygame, your source
code will be
completely exposed unless you use py2exe or some sort of automated
obfuscation.
Barring that, any tricks you use will be easily bypassed by sticking things
into the source code itself.
On Mon, Nov 14, 2011 at 12:
at it without decompiling. I'm not
sure if
variable names and the like are preserved).
On Mon, Nov 14, 2011 at 6:09 PM, Scribble Master wrote:
> I'd just like to note that for any game you write in pygame, your source
> code will be
> completely exposed unless you use py2exe o