Commit 391f4696 authored by Roger Serwy's avatar Roger Serwy

#17511: Keep IDLE find dialog open after clicking "Find Next".

Original patch by Sarah K.
parent 7e303731
...@@ -24,13 +24,12 @@ class SearchDialog(SearchDialogBase): ...@@ -24,13 +24,12 @@ class SearchDialog(SearchDialogBase):
def create_widgets(self): def create_widgets(self):
f = SearchDialogBase.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): def default_command(self, event=None):
if not self.engine.getprog(): if not self.engine.getprog():
return return
if self.find_again(self.text): self.find_again(self.text)
self.close()
def find_again(self, text): def find_again(self, text):
if not self.engine.getpat(): if not self.engine.getpat():
......
...@@ -606,6 +606,7 @@ John Jorgensen ...@@ -606,6 +606,7 @@ John Jorgensen
Sijin Joseph Sijin Joseph
Andreas Jung Andreas Jung
Tattoo Mabonzo K. Tattoo Mabonzo K.
Sarah K.
Bohuslav Kabrda Bohuslav Kabrda
Bob Kahn Bob Kahn
Kurt B. Kaiser Kurt B. Kaiser
......
...@@ -81,6 +81,9 @@ Library ...@@ -81,6 +81,9 @@ Library
IDLE IDLE
---- ----
- Issue #17511: Keep IDLE find dialog open after clicking "Find Next".
Original patch by Sarah K.
- Issue #18055: Move IDLE off of imp and on to importlib. - Issue #18055: Move IDLE off of imp and on to importlib.
- Issue #15392: Create a unittest framework for IDLE. - Issue #15392: Create a unittest framework for IDLE.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment