Release: 16/10/2001
The sprites.py program uses the Picture and ClickPicture classes from the appobjects module to display sprites. Examples of this are:
# This picture allows actions to be assigned to mouse buttons libs = ClickPicture(x, -480, x, -480, sprites, '!libraries') def exit_fn(args): global quit quit = 1 # Set an action libs.add_clickaction(app._select_, exit_fn, ['libs'])
# Two sprites with the same size, but from different modes lost1 = Picture(256, -256, 256, -256, sprites, '!lost1') lost2 = Picture(256, -256 - sprites.sprites['!lost1']['height'], 256, -256 - sprites.sprites['!lost1']['height'], sprites, '!lost2')