changeset fcef0c23ab0a in tryton:5.6
details: https://hg.tryton.org/tryton?cmd=changeset;node=fcef0c23ab0a
description:
Returns only Button instance instead of Gtk.Button
The Form.get_buttons must return only the instances created by
<button/> and
not the Link which are also Gtk.Button.
issue9714
review318621002
(grafted from 90071de08bc7b1349d661903f7d0c1f3da173d85)
diffstat:
tryton/gui/window/view_form/view/form.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 259af7dae8ce -r fcef0c23ab0a tryton/gui/window/view_form/view/form.py
--- a/tryton/gui/window/view_form/view/form.py Wed Oct 28 00:02:52 2020 +0100
+++ b/tryton/gui/window/view_form/view/form.py Mon Oct 26 21:25:47 2020 +0100
@@ -493,7 +493,7 @@
for w in widgets)
def get_buttons(self):
- return [b for b in self.state_widgets if isinstance(b, Gtk.Button)]
+ return [b for b in self.state_widgets if isinstance(b, Button)]
def reset(self):
record = self.record