diff pyntnclick/state.py @ 651:122204fb6eb1 pyntnclick

Defer drawing description to StateWidget
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 12 Feb 2012 12:47:30 +0200
parents 1faced4e343a
children c77d6aa29bee
line wrap: on
line diff
--- a/pyntnclick/state.py	Sun Feb 12 12:33:04 2012 +0200
+++ b/pyntnclick/state.py	Sun Feb 12 12:47:30 2012 +0200
@@ -323,7 +323,7 @@
         #label.fg_color = (0, 0, 0)
         return label
 
-    def draw_description(self, surface, screen):
+    def draw_description(self, surface):
         description = self._get_description()
         if description is not None:
             description.draw(surface)
@@ -351,7 +351,6 @@
     def draw(self, surface, screen):
         self.draw_background(surface)
         self.draw_things(surface)
-        self.draw_description(surface, screen)
 
     def interact(self, item, pos):
         """Interact with a particular position.