Mercurial > pyntnclick
comparison pyntnclick/engine.py @ 803:bcc9277a23e6 pyntnclick
Refactor widget positioning API. Remove unused widgets
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sun, 27 Jan 2013 14:52:16 +0200 |
parents | 374d96e0b55e |
children |
comparison
equal
deleted
inserted
replaced
802:5ec7905b2365 | 803:bcc9277a23e6 |
---|---|
67 self.gd = gd | 67 self.gd = gd |
68 self.resource = gd.resource | 68 self.resource = gd.resource |
69 | 69 |
70 self.surface_size = gd.constants.screen | 70 self.surface_size = gd.constants.screen |
71 self.surface = None | 71 self.surface = None |
72 self.container = Container(pygame.Rect((0, 0), self.surface_size), | 72 self.container = Container((0, 0), self.gd, self.surface_size) |
73 self.gd) | |
74 self.setup() | 73 self.setup() |
75 | 74 |
76 def on_enter(self): | 75 def on_enter(self): |
77 """Called when this becomes the current screen.""" | 76 """Called when this becomes the current screen.""" |
78 # Create the surface here as flipping between editor and | 77 # Create the surface here as flipping between editor and |