mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
1. Find in Files Dialog shows text selection if there is one
2. Remove obsolete comment associated with Window menu updating M EditorWindow.py M GrepDialog.py
This commit is contained in:
parent
260cb9034c
commit
ef58adf8d6
2 changed files with 4 additions and 6 deletions
|
@ -11,7 +11,8 @@ def grep(text, io=None, flist=None):
|
|||
if not hasattr(engine, "_grepdialog"):
|
||||
engine._grepdialog = GrepDialog(root, engine, flist)
|
||||
dialog = engine._grepdialog
|
||||
dialog.open(io)
|
||||
searchphrase = text.get("sel.first", "sel.last")
|
||||
dialog.open(text, searchphrase, io)
|
||||
|
||||
class GrepDialog(SearchDialogBase):
|
||||
|
||||
|
@ -25,8 +26,8 @@ class GrepDialog(SearchDialogBase):
|
|||
self.globvar = StringVar(root)
|
||||
self.recvar = BooleanVar(root)
|
||||
|
||||
def open(self, io=None):
|
||||
SearchDialogBase.open(self, None)
|
||||
def open(self, text, searchphrase, io=None):
|
||||
SearchDialogBase.open(self, text, searchphrase)
|
||||
if io:
|
||||
path = io.filename or ""
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue