changeset 0933248e1eff in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset;node=0933248e1eff
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 fb6a580b6735 -r 0933248e1eff 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
@@ -496,7 +496,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.screen.current_record