Set button insensitive when calling their callback
review900002
This commit is contained in:
1 parent
604bb100f6
commit
a07eefe689
1 file changed
+5
-1
@@ -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)
|
||||
Reference in new issue
Block a user