changeset 244:6aed37250c35

Rename GetanView member variable view to frame
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 09 Apr 2013 22:16:34 +0200
parents 9bf0ad952c68
children 4ecc6bdf0698
files getan/view.py
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Tue Apr 09 20:44:03 2013 +0200
+++ b/getan/view.py	Tue Apr 09 22:16:34 2013 +0200
@@ -301,19 +301,20 @@
                                        'question')
         self.col_list = self.columns.widget_list
         view = urwid.AttrWrap(self.columns, 'body')
-        self.view = urwid.Frame(view, header=self.header,footer=self.footer)
-        self._w = self.view
+        self.frame = urwid.Frame(view, header=self.header,footer=self.footer)
+        self._w = self.frame
 
     def get_frame(self):
-        return self.view
+        return self.frame
 
     def set_footer_text(self, text, attr, edit=False):
         if edit:
             logger.debug("GetanView: set footer text (edit): '%s'" % text)
-            self.view.set_footer(urwid.AttrWrap(urwid.Edit(text),attr))
+            self.frame.set_footer(urwid.AttrWrap(urwid.Edit(text), attr))
+            self.frame.set_focus("footer")
         else:
             logger.debug("GetanView: set footer text: '%s'" % text)
-            self.view.set_footer(urwid.AttrWrap(urwid.Text(text),attr))
+            self.frame.set_footer(urwid.AttrWrap(urwid.Text(text),attr))
 
     def get_palette(self):
         return self.palette
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)