Mercurial > pyntnclick
diff pyntnclick/state.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 | bdaffaa8b6bf |
children | d99400fcd624 |
line wrap: on
line diff
--- a/pyntnclick/state.py Sun Jan 27 14:50:33 2013 +0200 +++ b/pyntnclick/state.py Sun Jan 27 14:52:16 2013 +0200 @@ -321,6 +321,7 @@ return None label = LabelWidget((0, 10), self.gd, text) label.do_prepare() + # TODO: Centre more cleanly label.rect.left += (dest_rect.width - label.rect.width) / 2 return label