Mercurial > getan > getan
view getan/walker.py @ 230:8e9e894552e8
Lower debug output
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 08 Apr 2013 15:34:32 +0200 |
parents | f958ce12ba5a |
children | 13692255bc71 |
line wrap: on
line source
# -*- coding: utf-8 -*- # # (c) 2013 by Björn Ricks <bjoern.ricks@intevation.de> # # This is Free Software licensed under the terms of GPLv3 or later. # For details see LICENSE coming with the source of 'getan'. # import logging import urwid logger = logging.getLogger(__name__) class ListWalker(urwid.SimpleListWalker): def __init__(self, content, widget=None): super(ListWalker, self).__init__(content) self.widget = widget self.position = None def set_focus(self, position): super(ListWalker, self).set_focus(position) if self.widget and self.position != position: self.position = position self.widget.content_focus_changed()