Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee114d7

Browse files
IDLE - Capitalize search dialogs' 'Close' button label. (GH-13691)
It seems to be the only widget label not capitalized.(cherry picked from commitba04302)Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parente8661c1 commitee114d7

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
deftearDownClass(cls):
35+
cls.root.update_idletasks()
3536
cls.root.destroy()
3637
delcls.root
3738

@@ -149,7 +150,7 @@ def test_create_command_buttons(self):
149150
# Look for close button command in buttonframe
150151
closebuttoncommand=''
151152
forchildinself.dialog.buttonframe.winfo_children():
152-
ifchild['text']=='close':
153+
ifchild['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)

[8]ページ先頭

©2009-2025 Movatter.jp