mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #27477: Convert IDLE search dialogs to using ttk widgets.
This commit is contained in:
parent
a748032653
commit
6f7b0f577e
6 changed files with 50 additions and 36 deletions
|
@ -3,7 +3,7 @@ Uses idlelib.SearchEngine for search capability.
|
|||
Defines various replace related functions like replace, replace all,
|
||||
replace+find.
|
||||
"""
|
||||
from tkinter import *
|
||||
from tkinter import StringVar, TclError
|
||||
|
||||
from idlelib import searchengine
|
||||
from idlelib.searchbase import SearchDialogBase
|
||||
|
@ -204,7 +204,9 @@ class ReplaceDialog(SearchDialogBase):
|
|||
|
||||
|
||||
def _replace_dialog(parent): # htest #
|
||||
"""htest wrapper function"""
|
||||
from tkinter import Toplevel, Text
|
||||
from tkiter.ttk import Button
|
||||
|
||||
box = Toplevel(parent)
|
||||
box.title("Test ReplaceDialog")
|
||||
x, y = map(int, parent.geometry().split('+')[1:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue