]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 28 Dec 2018 07:41:35 +0000 (02:41 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Dec 2018 07:41:35 +0000 (02:41 -0500)
Lib/idlelib/searchbase.py
Misc/NEWS.d/next/IDLE/2018-12-28-01-19-20.bpo-35591.SFpDj2.rst [new file with mode: 0644]

index 9b03ff64c1e1a6635dbac4a129e2f218d577cad6..348db660e3e9121711385ece42c041601c97907a 100644 (file)
@@ -42,6 +42,7 @@ class SearchDialogBase:
         icon (of dialog): ditto, use unclear if cannot minimize dialog.
         '''
         self.root = root
+        self.bell = root.bell
         self.engine = engine
         self.top = None
 
@@ -80,7 +81,6 @@ class SearchDialogBase:
         top.wm_title(self.title)
         top.wm_iconname(self.icon)
         self.top = top
-        self.bell = top.bell
 
         self.row = 0
         self.top.grid_columnconfigure(0, pad=2, weight=0)
diff --git a/Misc/NEWS.d/next/IDLE/2018-12-28-01-19-20.bpo-35591.SFpDj2.rst b/Misc/NEWS.d/next/IDLE/2018-12-28-01-19-20.bpo-35591.SFpDj2.rst
new file mode 100644 (file)
index 0000000..33f67a4
--- /dev/null
@@ -0,0 +1 @@
+Find Selection now works when selection not found.