cpython: b6c5719e0f4e (original) (raw)

--- a/Lib/idlelib/GrepDialog.py +++ b/Lib/idlelib/GrepDialog.py @@ -45,10 +45,10 @@ class GrepDialog(SearchDialogBase): def create_entries(self): SearchDialogBase.create_entries(self)

def create_other_buttons(self):

btn = Checkbutton(f, anchor="w", variable=self.recvar,

--- a/Lib/idlelib/ReplaceDialog.py +++ b/Lib/idlelib/ReplaceDialog.py @@ -40,7 +40,7 @@ class ReplaceDialog(SearchDialogBase): def create_entries(self): SearchDialogBase.create_entries(self)

def create_command_buttons(self): SearchDialogBase.create_command_buttons(self)

--- a/Lib/idlelib/SearchDialogBase.py +++ b/Lib/idlelib/SearchDialogBase.py @@ -89,21 +89,29 @@ class SearchDialogBase: self.create_other_buttons() # next row, cols 0, 1 self.create_command_buttons() # col 2, all rows

+

def create_entries(self): "Create one or more entry lines with make_entry."

def make_frame(self,labeltext=None):

+

@@ -112,10 +120,15 @@ class SearchDialogBase: frame = Frame(self.top) frame.grid(row=self.row, column=1, columnspan=1, sticky="nwe") self.row = self.row + 1

def create_option_buttons(self):

+

@@ -128,10 +141,14 @@ class SearchDialogBase: btn.pack(side="left", fill="both") if var.get(): btn.select()

def create_other_buttons(self):

+

@@ -139,10 +156,9 @@ class SearchDialogBase: btn = Radiobutton(frame, anchor="w", variable=var, value=val, text=label) btn.pack(side="left", fill="both")

def make_button(self, label, command, isdef=0): "Return command button gridded in command frame."

--- a/Lib/idlelib/idle_test/test_searchdialogbase.py +++ b/Lib/idlelib/idle_test/test_searchdialogbase.py @@ -75,7 +75,7 @@ class SearchDialogBaseTest(unittest.Test equal = self.assertEqual self.dialog.row = 0 self.dialog.top = Toplevel(self.root)

self.assertIn(entry.get(), 'hello')