summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2018-12-28 02:41:35 -0500
committerGitHub <noreply@github.com>2018-12-28 02:41:35 -0500
commitc465682718f15cd3deb6b37db5fb607718ac64ed (patch)
tree5ed7e83a3bbfb4abcbf03260fc69513cb529eab9
parent55698cc39549523cafc13cc8dd47960d8f73a59f (diff)
downloadcpython-git-c465682718f15cd3deb6b37db5fb607718ac64ed.tar.gz
bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)
-rw-r--r--Lib/idlelib/searchbase.py2
-rw-r--r--Misc/NEWS.d/next/IDLE/2018-12-28-01-19-20.bpo-35591.SFpDj2.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/searchbase.py b/Lib/idlelib/searchbase.py
index 9b03ff64c1..348db660e3 100644
--- a/Lib/idlelib/searchbase.py
+++ b/Lib/idlelib/searchbase.py
@@ -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
index 0000000000..33f67a4cfe
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2018-12-28-01-19-20.bpo-35591.SFpDj2.rst
@@ -0,0 +1 @@
+Find Selection now works when selection not found.