diff options
author | Filipe Laíns <lains@riseup.net> | 2021-10-19 18:42:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 18:42:13 (GMT) |
commit | 236e301b8ad9b78ee880baf12e98a826113dc59b (patch) | |
tree | c95fae5ee2518e73a0ac59b6eaf7f64e63e3cf20 /Lib/tkinter/test/test_tkinter/test_widgets.py | |
parent | 574241632bd19e56ed488ee4d8999aefc6a8d7cd (diff) | |
download | cpython-236e301b8ad9b78ee880baf12e98a826113dc59b.zip cpython-236e301b8ad9b78ee880baf12e98a826113dc59b.tar.gz cpython-236e301b8ad9b78ee880baf12e98a826113dc59b.tar.bz2 |
bpo-42174: fallback to sane values if the columns or lines are 0 in get_terminal_size (GH-29046)
I considered only falling back when both were 0, but that still seems
wrong, and the highly popular rich[1] library does it this way, so I
thought we should probably inherit that behavior.
[1] https://github.com/willmcgugan/rich
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_widgets.py')
0 files changed, 0 insertions, 0 deletions