[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Mac pygame user wanted to help test new pygame clipboard support.



Hello

I tested it so far on my Mac (PPC, OSX 10.4, Python 2.3, Pygame 1.70). After saving both with their right name, starting scrap_clipboard.py and pressing "g" I got the following error on scrap_clipboard.py:

NameError: name 'SCRAP_TEXT is not defined in scrap_clipboard.py
Stoped at line: r = pygame.scrap.get(SCRAP_TEXT)

Similar when pressing "p":
pygame.scrap.put(SCRAP_TEXT, "Hello. This is a message from scrap.")
Stoped at line: pygame.scrap.put(SCRAP_TEXT, "Hello. This is a message from scrap.")


Greetings
Farai





Am 09.04.2006 um 10:17 schrieb Rene Dudfield:

Anyone able to test out clipboard support on the mac?

If so download both of these scripts and run the scrap_clipboard.py one.
http://rene.f0o.com/~rene/stuff/scrap_clipboard.py
http://rene.f0o.com/~rene/stuff/mac_scrap.py


Press 'g' key to get stuff from the clipboard and print it to the console.
Press 'p' key to put 'Hello. This is a message from scrap.' in the clipboard.



Thanks for any help.