comparison getan/states.py @ 250:4d93bca23d89

Set focus to GetanView frame footer when changing to DescriptionProjectsState
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 09 Apr 2013 22:20:22 +0200
parents 09051bd266b1
children fb412892efb5
comparison
equal deleted inserted replaced
249:09051bd266b1 250:4d93bca23d89
664 664
665 def __init__(self, controller, view, key): 665 def __init__(self, controller, view, key):
666 controller.view.set_footer_text(self.msg('proj_description'), 666 controller.view.set_footer_text(self.msg('proj_description'),
667 'question', edit=True) 667 'question', edit=True)
668 super(AddProjectDescriptionState, self).__init__(controller, view) 668 super(AddProjectDescriptionState, self).__init__(controller, view)
669 self.view.frame.set_focus('footer') 669 self.controller.view.view.set_focus('footer')
670 self.key = key 670 self.key = key
671 671
672 def enter(self): 672 def enter(self):
673 description = self.footer.get_edit_text() 673 description = self.footer.get_edit_text()
674 if description == '': 674 if description == '':
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)