Re: [pygame] Update on Sphinx version of Pygame docs

2011-04-13 Thread Jake b
As a newbie to reST I don't feel qualified to decide. Although I found a few resources I thought I'd share: for the html docs: you might be interested in a javascript sites include, that add syntax hilighting to code found in the page. This leaves the original code clean of styling. It should work

Re: [pygame] blit a list containing surfaces

2011-04-13 Thread Jake b
Take a look at AnimatedSprite() in piman's tutorial : http://www.sacredchao.net/~piman/writing/sprite-tutorial.shtml As well as help(pygame.Sprite) http://www.pygame.org/docs/ref/sprite.html Without seeing your code, it would be something like: # where i is your current frame index of the list. s

[pygame] Unix building Info and compiling in Red Hat, update

2011-04-13 Thread Γαλατσάνος Παναγιώτης
Hello to all, The previous week I spend some time to install pygame from source to a machine and I thought it will be nice idea to add the things I've learned in pygames documentation. So in the attachment I have added some more details about compiling pygame from source (Unix Building Info) Al

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread James Paige
On Wed, Apr 13, 2011 at 10:18 AM, James Paige wrote: > I was assuming that you were talking about a USB joystick or gamepad. > Are you talking about the old midi-port style joysticks? the ones where > the port is usually on the sound card? > > I have no idea if pygame supports those at all... I am

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread Christopher Arndt
Scott Sumner schrieb: > I believe that the joystick can be initialized and read without a > window. [...] If you don't use the event system and just use the > "read the joystick directly" function I think it'll just work. You can still use the event module (which depends on the display module) on

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread James Paige
I was assuming that you were talking about a USB joystick or gamepad. Are you talking about the old midi-port style joysticks? the ones where the port is usually on the sound card? I have no idea if pygame supports those at all... I am not sure if they even show up as joystick devices in the li

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread SlawKo . skrzynka
No, I do not want to disassemble a Joystick. I simply want to add a relay that would be connected to existing relay in UPS that switches battery ON. See a picture with connections in enclosed file. SlawKo Użytkownik "James Paige" napisał(a): > Temat: Re: [pygame] Making UPS smart with Py

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread Joe Ranalli
"The necessary hardware upgrade to the UPS is very simple and requires just 2 additional relays an some cabling. It will electrically be equivalent to a joystick hardware that simply connect 2 pairs of wires by the button. In this application the human finger and the button switch is replaced by a

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread René Dudfield
haha. love it! I think it should be fairly easy to do. You can get events every time a button is pushed and act on those. here is an example program: http://bazaar.launchpad.net/~illume/joytodeploy/trunk/annotate/head%3A/joytodeploy.py * joytodeploy.py deployment_program for example:

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread Scott Sumner
I believe that the joystick can be initialized and read without a window. I do this when developing some of my games -- use a simple console menu to select my input device and setup configuration then launch the graphics. If you don't use the event system and just use the "read the joystick direc

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread James Paige
Oh! I understand now! You are going to take a joystick, disassemble it, and splice it together with your UPS so the buttons get pushed as you describe. Pygame's joystick support is nice and simple and easy to use-- the only problem I could forsee is that AKAIK you have to initialize a pygame w

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread SlawKo . skrzynka
1) I am sure my UPS is neither being read as a Joystick nor any other device. It is because it has only 2 connections: AC-input and AC-output. 2) This UPS is made by "Ever" type "MP300". 3) It is connected to the computer by AC-output socket on the UPS and AC-input of the PSU in my PC. It has no

Re: [pygame] Whoa! Bad slowdown!

2011-04-13 Thread Julian Marchant
Ah, of course! I was so fixated on adjusting alpha, I completely ignored blending effects. I can't properly test how good it looks yet, but it causes very little if any slowdown (seems to be none). Thanks for the help! :) From: Weeble To: pygame-users@seul.or

Re: [pygame] Re: I can't install pygame on activestate python [win, 32bit python 2.7]

2011-04-13 Thread David Burton
Yes, awesome indeed!!! Thank you!!! Dave On Tue, Apr 12, 2011 at 3:30 AM, René Dudfield wrote: > Awesome. > > With your permission, I think I'll link to them from the pygame download > page as pre releases? Or I can upload them to the pygame website to save > you some bandwidth. > > cya. >