changeset 90071de08bc7 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=90071de08bc7
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
diffstat:
tryton/gui/window/view_form/view/form.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 96b7544e5638 -r 90071de08bc7 tryton/gui/window/view_form/view/form.py
--- a/tryton/gui/window/view_form/view/form.py Sat Oct 24 13:45:13 2020 +0200
+++ 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