changeset d7758a831d1f in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=d7758a831d1f
description:
Do not stop edition of CellRendererDate when calendar popup is visible
issue10443
review351981002
(grafted from efed57f8b0bd293cf1e97ba7f9eb4454c8d29239)
diffstat:
tryton/common/datetime_.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r ee7361a2a81d -r d7758a831d1f tryton/common/datetime_.py
--- a/tryton/common/datetime_.py Tue May 18 22:32:45 2021 +0200
+++ b/tryton/common/datetime_.py Wed May 26 23:45:27 2021 +0200
@@ -172,6 +172,9 @@
self.grab_focus()
self.emit('date-changed')
+ def cal_popup_is_visible(self):
+ return self.__cal_popup.is_visible()
+
def focus_out(self, entry, event):
previous_date = self.__date
self.parse()
@@ -266,6 +269,8 @@
# TODO emit edited
def __focus_out_event(self, entry, event):
+ if entry.cal_popup_is_visible():
+ return True
entry.props.editing_canceled = True
entry.editing_done()
entry.remove_widget()