Skip to content

Commit 20ed046

Browse files
committed
Test button rewrap if taking outside Frame
1 parent 9fa0330 commit 20ed046

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_widget_button.py

+4
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,7 @@ def test_multiline(self) -> None:
346346
['required', 'nice a test is', 'important', 'was very', 'amet this', 'dolor sit',
347347
'lorem ipsum', 'required', 'nice a test is', 'important', 'was very'])
348348
self.assertLessEqual(abs(button.get_width() - button._get_max_container_width()), 2)
349+
350+
# Taking button out from Frame must restore its container and reassemble wrap
351+
f1.unpack(button)
352+
self.assertEqual(button.get_overflow_lines(), ['important nice a test is required'])

0 commit comments

Comments
 (0)