comparison pytouhou/ui/opengl/gamerenderer.pyx @ 590:e15672733c93

Switch to Python 3.x instead of 2.7.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 Sep 2014 17:14:24 +0200
parents 6c9d8a3d853f
children 19d930f9e3f0
comparison
equal deleted inserted replaced
589:0768122da817 590:e15672733c93
227 227
228 self.font_manager.load(texts) 228 self.font_manager.load(texts)
229 229
230 black = Color(0, 0, 0, 255) 230 black = Color(0, 0, 0, 255)
231 231
232 for label in texts.itervalues(): 232 for label in texts.values():
233 texture = (<Texture>label.texture).texture 233 texture = (<Texture>label.texture).texture
234 rect = Rect(label.x, label.y, label.width, label.height) 234 rect = Rect(label.x, label.y, label.width, label.height)
235 gradient = [Color(*color, a=label.alpha) for color in label.gradient] 235 gradient = [Color(*color, a=label.alpha) for color in label.gradient]
236 236
237 if label.shadow: 237 if label.shadow: