summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-08-18 22:23:10 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-08-18 22:23:10 (GMT)
commit40fe3240c11f86426c98a70e538a40131bef392b (patch)
tree434744c1454f44ecc498f001803392ef60162816 /Lib/idlelib
parent44ed3de6f4f8cbea278f68b5a8a33a26c76f6251 (diff)
parentc5507c0d76b3a9c6ec3fbfdabd9e5030bda283be (diff)
downloadcpython-40fe3240c11f86426c98a70e538a40131bef392b.zip
cpython-40fe3240c11f86426c98a70e538a40131bef392b.tar.gz
cpython-40fe3240c11f86426c98a70e538a40131bef392b.tar.bz2
Merge with 3.3
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/SearchDialogBase.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/idlelib/SearchDialogBase.py b/Lib/idlelib/SearchDialogBase.py
index 65914ac..872c7c2 100644
--- a/Lib/idlelib/SearchDialogBase.py
+++ b/Lib/idlelib/SearchDialogBase.py
@@ -1,6 +1,23 @@
+'''Define SearchDialogBase used by Search, Replace, and Grep dialogs.'''
from tkinter import *
class SearchDialogBase:
+ '''Create most of a modal search dialog (make_frame, create_widgets).
+
+ The wide left column contains:
+ 1 or 2 text entry lines (create_entries, make_entry);
+ a row of standard radiobuttons (create_option_buttons);
+ a row of dialog specific radiobuttons (create_other_buttons).
+
+ The narrow right column contains command buttons
+ (create_command_buttons, make_button).
+ These are bound to functions that execute the command.
+
+ Except for command buttons, this base class is not limited to
+ items common to all three subclasses. Rather, it is the Find dialog
+ minus the "Find Next" command and its execution function.
+ The other dialogs override methods to replace and add widgets.
+ '''
title = "Search Dialog"
icon = "Search"