Mercurial > getan
changeset 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 | 1a90a126c415 |
files | ChangeLog getan.py |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Aug 29 19:56:11 2010 +0200 +++ b/ChangeLog Sun Aug 29 20:39:42 2010 +0200 @@ -1,3 +1,8 @@ +2010-08-29 Ingo Weinzierl <ingo_weinzierl@web.de> + + * getan.py: Catch a window resize event before calling keypress() of the + states and trigger an update of the view - the view is resizable now! + 2010-08-29 Ingo Weinzierl <ingo_weinzierl@web.de> * getan/states.py: Enter MoveEntryState and DeleteEntryState only if there
--- 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.")