IDLE - Capitalize search dialogs' 'Close' button label. (GH-13691)
It seems to be the only widget label not capitalized.
(cherry picked from commit ba0430211f
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
e8661c1dab
commit
ee114d7795
|
@ -32,6 +32,7 @@ class SearchDialogBaseTest(unittest.TestCase):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
cls.root.update_idletasks()
|
||||||
cls.root.destroy()
|
cls.root.destroy()
|
||||||
del cls.root
|
del cls.root
|
||||||
|
|
||||||
|
@ -149,7 +150,7 @@ class SearchDialogBaseTest(unittest.TestCase):
|
||||||
# Look for close button command in buttonframe
|
# Look for close button command in buttonframe
|
||||||
closebuttoncommand = ''
|
closebuttoncommand = ''
|
||||||
for child in self.dialog.buttonframe.winfo_children():
|
for child in self.dialog.buttonframe.winfo_children():
|
||||||
if child['text'] == 'close':
|
if child['text'] == 'Close':
|
||||||
closebuttoncommand = child['command']
|
closebuttoncommand = child['command']
|
||||||
self.assertIn('close', closebuttoncommand)
|
self.assertIn('close', closebuttoncommand)
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ class SearchDialogBase:
|
||||||
f = self.buttonframe = Frame(self.top)
|
f = self.buttonframe = Frame(self.top)
|
||||||
f.grid(row=0,column=2,padx=2,pady=2,ipadx=2,ipady=2)
|
f.grid(row=0,column=2,padx=2,pady=2,ipadx=2,ipady=2)
|
||||||
|
|
||||||
b = self.make_button("close", self.close)
|
b = self.make_button("Close", self.close)
|
||||||
b.lower()
|
b.lower()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue