Set text on child of editable for Time widget

The editable of Time widget is a combobox which does not have set_text method.

issue10003
review320571002
This commit is contained in:
Cédric Krier committed 2021-01-24 20:59:46 +01:00
1 parent 65805bd87b
commit 550ca3a76c
1 file changed
+6
@@ -484,6 +484,12 @@ class Time(Date):
else:
return ''
def set_editable(self):
if not self.editable or not self.editing:
return
record, field = self.editing
self.editable.get_child().set_text(self.get_textual_value(record))
class TimeDelta(GenericText):
align = 1