From: Grzegorz A. H. <gr...@te...> - 2002-01-02 00:28:33
|
Hello. After reading some documentation to see if I could help with the pyallegro wrapper, I seem to have overlooked global variables wrapping standard procedures. IOW: how the hell do you wrap around something like say mouse_x? My little understanding tells me that you would create a python wrapper class. User python code would use methods of this class like set/get to write/read the variable, and the class code would do the actual trick of modifying/returning the real C global value. Python example: import pyallegro pyallegro.install() pyallegro.whatever() print "Mouse is at %d" % pyallegro.mouse_x.get() Is this correct? If yes, huh, it's kinda ugly... -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org/ |