Set button insensitive when calling their callback

review900002
This commit is contained in:
Nicolas Évrard committed 2013-06-27 14:44:43 +02:00
1 parent 604bb100f6
commit a07eefe689
1 file changed
+5 -1
+5 -1
View File
@@ -168,4 +168,8 @@ class ViewForm(ParserView):
self.screen.display()
return
else:
self.screen.button(widget.attrs)
widget.set_sensitive(False)
try:
self.screen.button(widget.attrs)
finally:
widget.set_sensitive(True)