# HG changeset patch # User Björn Ricks # Date 1365184488 -7200 # Node ID 9badfbb04ac932e90901739f22868df8585348d2 # Parent b71dc50fbd51d41224869f78124de3a6a32206f9 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. diff -r b71dc50fbd51 -r 9badfbb04ac9 getan/view.py --- 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)