From: Terry Jan Reedy Date: Mon, 18 Sep 2017 00:13:25 +0000 (-0400) Subject: bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634) X-Git-Tag: v3.7.0a1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0efc7c67a2f8a184e93f9a491305c81ef2e24250;p=python bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634) This reverses a never-released regression resulting from bpo-31287. --- diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index 7feae5d619..0f530c66a1 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -1237,7 +1237,7 @@ class HighPage(Frame): def askyesno(self, *args, **kwargs): # Make testing easier. Could change implementation. - messagebox.askyesno(*args, **kwargs) + return messagebox.askyesno(*args, **kwargs) def delete_custom(self): """Handle event to delete custom theme. @@ -1683,7 +1683,7 @@ class KeysPage(Frame): def askyesno(self, *args, **kwargs): # Make testing easier. Could change implementation. - messagebox.askyesno(*args, **kwargs) + return messagebox.askyesno(*args, **kwargs) def delete_custom_keys(self): """Handle event to delete a custom key set.