summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/replace.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-11 03:44:54 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-11 03:44:54 (GMT)
commit3ff55a815559c91cfd8a7573e63ea6c3b7124484 (patch)
tree18c062df6cfcbee9f33f37ab41b96406c97e7302 /Lib/idlelib/replace.py
parent40f70d1c057fb61eb24724950c237cd4b45a8cf5 (diff)
downloadcpython-3ff55a815559c91cfd8a7573e63ea6c3b7124484.zip
cpython-3ff55a815559c91cfd8a7573e63ea6c3b7124484.tar.gz
cpython-3ff55a815559c91cfd8a7573e63ea6c3b7124484.tar.bz2
Issue #27732: Silence test_idle with dummy bell functions.
Diffstat (limited to 'Lib/idlelib/replace.py')
-rw-r--r--Lib/idlelib/replace.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/replace.py b/Lib/idlelib/replace.py
index 7c95733..367bfc9 100644
--- a/Lib/idlelib/replace.py
+++ b/Lib/idlelib/replace.py
@@ -95,7 +95,7 @@ class ReplaceDialog(SearchDialogBase):
text = self.text
res = self.engine.search_text(text, prog)
if not res:
- text.bell()
+ self.bell()
return
text.tag_remove("sel", "1.0", "end")
text.tag_remove("hit", "1.0", "end")
@@ -142,7 +142,7 @@ class ReplaceDialog(SearchDialogBase):
text = self.text
res = self.engine.search_text(text, None, ok)
if not res:
- text.bell()
+ self.bell()
return False
line, m = res
i, j = m.span()
@@ -204,8 +204,8 @@ class ReplaceDialog(SearchDialogBase):
def _replace_dialog(parent): # htest #
- from tkinter import Toplevel, Text
- from tkiter.ttk import Button
+ from tkinter import Toplevel, Text, END, SEL
+ from tkinter.ttk import Button
box = Toplevel(parent)
box.title("Test ReplaceDialog")