From: Juha-Matti T. <jm...@pu...> - 2002-01-01 22:50:21
|
On ti, 2002-01-01 at 23:49, Grzegorz Adam Hankiewicz wrote: > On Tue, Jan 01, 2002 at 10:45:43PM +0200, Juha-Matti Tapio wrote: > > > Output/effect remains the same as root or user. Same messages with both > > > python versions (1.5 and 2.1). > > > > Just a thought. Do you have python-dev package installed? > Yes. The only problem is with installation: only _alpy.so get's installed, > none other files are copied anywhere. How does it react to "setup.py install_lib"? > > Currently the cvs-version seems to build nicely with the newest 2.1 and > > 2.2 Debian packages. > Yes. Please put somewhere (maybe that lone README?) that those versions > are required to run: Done. > #!/usr/bin/env python2.1 > from alpy import * > install_allegro(SYSTEM_AUTODETECT) > install_keyboard() > print "Hey man" > print set_gfx_mode(GFX_AUTODETECT, 320, 200) > readkey() > I would expect it to set a graphic mode, but it doesn't, it prints > None. readkey works though. Currently set_gfx_mode() returns always None. Instead it raises AlpyException when it failes to set the mode. What happens, if you do this: from alpy ipmort * import _alpy install_allegro(SYSTEM_AUTODETECT) install_keyboard() _alpy.set_gfx_mode(GFX_AUTODETECT, 320, 200) readkey() It might give a more precise error message. -- Juha-Matti Tapio, ATK-suunnittelija, fil. yo. +358-50-5419230 |