From 7001e2263bce99e9d800a7fdd226e65614f6a1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 8 Apr 2013 23:46:14 +0200 Subject: [PATCH] Fix focus chain of Calendar widget issue3121 review766002 --- tryton/gui/window/view_form/view/form_gtk/calendar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/calendar.py b/tryton/gui/window/view_form/view/form_gtk/calendar.py index 2c684bb64e..7292c7e0cc 100644 --- a/tryton/gui/window/view_form/view/form_gtk/calendar.py +++ b/tryton/gui/window/view_form/view/form_gtk/calendar.py @@ -29,6 +29,10 @@ class Calendar(WidgetInterface): def _readonly_set(self, value): self.entry.set_editable(not value) + if value: + self.widget.set_focus_chain([]) + else: + self.widget.set_focus_chain([self.entry]) @property def modified(self):