]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#17511: Keep IDLE find dialog open after clicking "Find Next".
authorRoger Serwy <roger.serwy@gmail.com>
Tue, 11 Jun 2013 04:01:20 +0000 (23:01 -0500)
committerRoger Serwy <roger.serwy@gmail.com>
Tue, 11 Jun 2013 04:01:20 +0000 (23:01 -0500)
Original patch by Sarah K.

Lib/idlelib/SearchDialog.py
Misc/ACKS
Misc/NEWS

index 7c70b84ee46df49b80d9e997b9bb9a612214d043..3ba0cdb95d144a24215b5b679303a8a65143d1ed 100644 (file)
@@ -24,13 +24,12 @@ class SearchDialog(SearchDialogBase):
 
     def create_widgets(self):
         f = SearchDialogBase.create_widgets(self)
-        self.make_button("Find", self.default_command, 1)
+        self.make_button("Find Next", self.default_command, 1)
 
     def default_command(self, event=None):
         if not self.engine.getprog():
             return
-        if self.find_again(self.text):
-            self.close()
+        self.find_again(self.text)
 
     def find_again(self, text):
         if not self.engine.getpat():
index 92fffc68de374135388f4007ded9509b672a4d69..15daf505aa2f7cdc2aee632d20374f08dae56e7c 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -502,6 +502,7 @@ Jens B. Jorgensen
 Sijin Joseph
 Andreas Jung
 Tattoo Mabonzo K.
+Sarah K.
 Bohuslav Kabrda
 Bob Kahn
 Kurt B. Kaiser
index 784011a2015d000790891fbd41989a1c300c6d5a..1e28c3883ee633d51b7aeed46cdf8f029bf276f5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -50,6 +50,9 @@ Build
 IDLE
 ----
 
+- Issue #17511: Keep IDLE find dialog open after clicking "Find Next".
+  Original patch by Sarah K.
+
 - Issue #15392: Create a unittest framework for IDLE.
   Preliminary patch by Rajagopalasarma Jayakrishnan