Mercurial > pyntnclick
comparison gamelib/widgets.py @ 124:97322b78d1c1
Minor style cleanups
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 24 Aug 2010 17:55:47 +0200 |
parents | d2f84f22def0 |
children | fbfd8e748ac0 |
comparison
equal
deleted
inserted
replaced
123:3b293e3b8829 | 124:97322b78d1c1 |
---|---|
18 w, h = self.size | 18 w, h = self.size |
19 d = margin - old_margin | 19 d = margin - old_margin |
20 self.margin = margin | 20 self.margin = margin |
21 self.size = (w + 2 * d, h + 2 * d) | 21 self.size = (w + 2 * d, h + 2 * d) |
22 | 22 |
23 | |
23 class MessageDialog(BoomLabel, CursorWidget): | 24 class MessageDialog(BoomLabel, CursorWidget): |
24 | 25 |
25 def __init__(self, text, wrap_width, **kwds): | 26 def __init__(self, text, wrap_width, **kwds): |
26 CursorWidget.__init__(self) | 27 CursorWidget.__init__(self) |
27 paras = text.split("\n\n") | 28 paras = text.split("\n\n") |