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

Original patch by Sarah K.
This commit is contained in:
Roger Serwy 2013-06-10 23:01:20 -05:00
parent 7e30373126
commit 391f469681
3 changed files with 6 additions and 3 deletions

View 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():