Mercurial > getan > getan
diff getan/controller.py @ 479:75131561d098
Add a redraw function on key Control-L.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Wed, 16 May 2018 17:02:37 +0200 |
parents | 3853cf82ca3c |
children | 463894654d77 |
line wrap: on
line diff
--- a/getan/controller.py Fri May 11 14:27:48 2018 +0200 +++ b/getan/controller.py Wed May 16 17:02:37 2018 +0200 @@ -47,6 +47,12 @@ input_filter=self.input_filter) self.loop.run() + def redraw(self): + self.loop.stop() + self.loop.start() + self.loop.screen_size = None + self.loop.draw_screen() + def input_filter(self, input, raw_input): if 'window resize' in input: self.loop.screen_size = None