Mercurial > getan
diff getan.py @ 26:5e4d2810a739
Added support for resizing the application window.
author | Ingo Weinzierl <ingo_weinzierl@web.de> |
---|---|
date | Sun, 29 Aug 2010 20:39:42 +0200 |
parents | 155b23da504b |
children | fea63a224065 |
line wrap: on
line diff
--- a/getan.py Sun Aug 29 19:56:11 2010 +0200 +++ b/getan.py Sun Aug 29 20:39:42 2010 +0200 @@ -43,7 +43,11 @@ self.state = self.state.keypress(key) def input_filter(self, input, raw_input): - self.state = self.state.keypress(input) + if 'window resize' in input: + self.view.loop.screen_size = None + self.view.loop.draw_screen() + else: + self.state = self.state.keypress(input) def update_entries(self, project): logger.debug("GetanController: update entries.")