Mercurial > getan
changeset 212:9badfbb04ac9
Add set_focus method to GetanView
When the focus is set on the GetanView it is passed to the columns which contain
the frame with the project and entry lists.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 05 Apr 2013 19:54:48 +0200 (2013-04-05) |
parents | b71dc50fbd51 |
children | ea7978e43ea7 |
files | getan/view.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/view.py Fri Apr 05 19:52:57 2013 +0200 +++ b/getan/view.py Fri Apr 05 19:54:48 2013 +0200 @@ -14,6 +14,7 @@ import urwid import urwid.raw_display +from getan.nodes import ProjectNode, EntryNode from getan.resources import gettext as _ from getan.states import * from getan.utils import short_time, format_datetime @@ -480,3 +481,6 @@ def update_entries(self, entries): self.entr_list.set_rows(entries) + + def set_focus(self, column): + self.columns.set_focus_column(column)