mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #27891: Consistently group and sort imports within idlelib modules.
This commit is contained in:
parent
89b1162511
commit
bfbaa6b206
47 changed files with 200 additions and 125 deletions
|
@ -1,5 +1,6 @@
|
|||
'''Define SearchEngine for search dialogs.'''
|
||||
import re
|
||||
|
||||
from tkinter import StringVar, BooleanVar, TclError
|
||||
import tkinter.messagebox as tkMessageBox
|
||||
|
||||
|
@ -14,6 +15,7 @@ def get(root):
|
|||
# This creates a cycle that persists until root is deleted.
|
||||
return root._searchengine
|
||||
|
||||
|
||||
class SearchEngine:
|
||||
"""Handles searching a text widget for Find, Replace, and Grep."""
|
||||
|
||||
|
@ -186,6 +188,7 @@ class SearchEngine:
|
|||
col = len(chars) - 1
|
||||
return None
|
||||
|
||||
|
||||
def search_reverse(prog, chars, col):
|
||||
'''Search backwards and return an re match object or None.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue