Mercurial > libervia-backend
comparison frontends/src/wix/quiz_game.py @ 588:beaf6bec2fcd
Remove every old-style class.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | 952322b1d490 |
children | 84a6e83157c2 |
comparison
equal
deleted
inserted
replaced
587:952322b1d490 | 588:beaf6bec2fcd |
---|---|
32 CARD_WIDTH = 74 | 32 CARD_WIDTH = 74 |
33 CARD_HEIGHT = 136 | 33 CARD_HEIGHT = 136 |
34 WIDTH = 800 | 34 WIDTH = 800 |
35 HEIGHT = 600 | 35 HEIGHT = 600 |
36 | 36 |
37 class GraphicElement(): | 37 class GraphicElement(object): |
38 """This class is used to represent a card, graphically and logically""" | 38 """This class is used to represent a card, graphically and logically""" |
39 | 39 |
40 def __init__(self, file, x=0, y=0, zindex=10, transparent=True): | 40 def __init__(self, file, x=0, y=0, zindex=10, transparent=True): |
41 """ Image used to build the game visual | 41 """ Image used to build the game visual |
42 @param file: path of the PNG file | 42 @param file: path of the PNG file |