Skip to content

Commit 937bba7

Browse files
ronaldoussorenerlend-aasland
authored andcommitted
pythongh-86673: Fix test_element_create_image() in test_ttk
1 parent 6401cdf commit 937bba7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_ttk/test_style.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ def test_element_create_image(self):
227227
foreground='blue', background='yellow')
228228
img3 = tkinter.BitmapImage(master=self.root, file=imgfile,
229229
foreground='white', background='black')
230-
style.element_create('Button.button', 'image',
230+
style.element_create('Button.button2', 'image',
231231
img1, ('pressed', img2), ('active', img3),
232232
border=(2, 4), sticky='we')
233-
self.assertIn('Button.button', style.element_names())
233+
self.assertIn('Button.button2', style.element_names())
234234

235-
style.layout('Button', [('Button.button', {'sticky': 'news'})])
235+
style.layout('Button', [('Button.button2', {'sticky': 'news'})])
236236
b = ttk.Button(self.root, style='Button')
237237
b.pack(expand=True, fill='both')
238238
self.assertEqual(b.winfo_reqwidth(), 16)

0 commit comments

Comments
 (0)