comparison 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
comparison
equal deleted inserted replaced
25:155b23da504b 26:5e4d2810a739
41 41
42 def unhandled_keypress(self, key): 42 def unhandled_keypress(self, key):
43 self.state = self.state.keypress(key) 43 self.state = self.state.keypress(key)
44 44
45 def input_filter(self, input, raw_input): 45 def input_filter(self, input, raw_input):
46 self.state = self.state.keypress(input) 46 if 'window resize' in input:
47 self.view.loop.screen_size = None
48 self.view.loop.draw_screen()
49 else:
50 self.state = self.state.keypress(input)
47 51
48 def update_entries(self, project): 52 def update_entries(self, project):
49 logger.debug("GetanController: update entries.") 53 logger.debug("GetanController: update entries.")
50 self.entries_view.set_rows(self.backend.load_entries(project.id)) 54 self.entries_view.set_rows(self.backend.load_entries(project.id))
51 self.view.update_view() 55 self.view.update_view()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)