Set value on focus out and changed signal for datetime widget
The focus out of child widgets must call focus out method. And we need to connect to the datetime-changed event as DateTime does not call the __init__ method of Date. Closes #12020
This commit is contained in:
1 parent
15749e6ab5
commit
27a9c39197
1 file changed
+2
@@ -138,6 +138,8 @@ class DateTime(Date):
|
||||
child.connect('key_press_event', self.sig_key_press)
|
||||
child.connect('activate', self.sig_activate)
|
||||
child.connect('changed', lambda _: self.send_modified())
|
||||
child.connect('focus-out-event', lambda *a: self._focus_out())
|
||||
self.entry.connect(self._changed_signal, self.changed)
|
||||
self.widget.pack_start(self.entry, expand=False, fill=False, padding=0)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user