diff pyntnclick/state.py @ 726:efa58c92b304 pyntnclick

Move prepare out of __init__ and into everywhere else
author Neil Muller <neil@dip.sun.ac.za>
date Tue, 15 Jan 2013 22:44:50 +0200
parents 4203fbf11b86
children a453731e4531
line wrap: on
line diff
--- a/pyntnclick/state.py	Tue Jan 15 21:57:42 2013 +0200
+++ b/pyntnclick/state.py	Tue Jan 15 22:44:50 2013 +0200
@@ -273,6 +273,7 @@
         if text is None:
             return None
         label = LabelWidget((0, 10), self.gd, text)
+        label.do_prepare()
         label.rect.left += (dest_rect.width - label.rect.width) / 2
         return label