Re: [pygame] Pygame without screen

2016-03-27 Thread Winkleink
I use dummy in the following project and it worked. There may be something other than that one line that needs to be sorted. http://winkleink.blogspot.co.uk/2013/04/raspberry-pi-unipolar-stepper-motors.html On Sun, 27 Mar 2016 at 08:03, Bert Haverkamp wrote: > Hello all,

Re: [pygame] Need a lot of help with 'virtual' board game

2015-06-30 Thread Winkleink
Check invent with Python on the Internet. It's a website for an author who does Python/Pygame books. You can buy the books and/or download the PDF for free. Great place to start if you need to learn loads in a structured way. On Tue, 30 Jun 2015 at 20:41, Noel Garwick noel.garw...@gmail.com

Re: [pygame] Using Pygame to capture key presses for CLI prgram?

2013-05-30 Thread winkleink
://pastebin.com/q9xMVUSb I also found the timeout module handy in combination with reading raw stdin, but whether or not it will be useful for your program I don't know. --- James Paige On Wed, May 29, 2013 at 05:05:59PM -0700, winkleink wrote: Hi, I'm running pygame in a raspberry pi

Re: [pygame] Using Pygame to capture key presses for CLI prgram?

2013-05-30 Thread Winkleink
using, this comes up for me pretty often too. In Windows there's a super easy way to get global keypresses, but I haven't found anything in *nix. Windows method: i = win32api.GetAsyncKeyState([keycode]) On Thu, May 30, 2013 at 1:02 AM, winkleink winkle...@gmail.com wrote: James - thank you

[pygame] Using Pygame to capture key presses for CLI prgram?

2013-05-29 Thread winkleink
Hi, I'm running pygame in a raspberry pi. The program I am writing has no graphical interface and I am connecting using SSH (Putty from a Windows XP computer) I want to capture a key press (with no graphical interface) and take action. Below is my code. From what I can tell it should work. Any

Re: [pygame] Using Pygame to capture key presses for CLI prgram?

2013-05-29 Thread Winkleink
Robert - thanks for the advice. I posted through nabble.com and it looks like it stripped out the code as it was in a raw tag. I don't fully understand how pygame works and I hoped that by setting os.environ[SDL_VIDEODRIVER] = dummy I could capture key presses. Is this the case or is a real