Skip to content

Commit ee114d7

Browse files
IDLE - Capitalize search dialogs' 'Close' button label. (GH-13691)
It seems to be the only widget label not capitalized. (cherry picked from commit ba04302) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent e8661c1 commit ee114d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/idlelib/idle_test/test_searchbase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def setUpClass(cls):
3232

3333
@classmethod
3434
def tearDownClass(cls):
35+
cls.root.update_idletasks()
3536
cls.root.destroy()
3637
del cls.root
3738

@@ -149,7 +150,7 @@ def test_create_command_buttons(self):
149150
# Look for close button command in buttonframe
150151
closebuttoncommand = ''
151152
for child in self.dialog.buttonframe.winfo_children():
152-
if child['text'] == 'close':
153+
if child['text'] == 'Close':
153154
closebuttoncommand = child['command']
154155
self.assertIn('close', closebuttoncommand)
155156

Lib/idlelib/searchbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def create_command_buttons(self):
172172
f = self.buttonframe = Frame(self.top)
173173
f.grid(row=0,column=2,padx=2,pady=2,ipadx=2,ipady=2)
174174

175-
b = self.make_button("close", self.close)
175+
b = self.make_button("Close", self.close)
176176
b.lower()
177177

178178

0 commit comments

Comments
 (0)