urwid 2.6.14__tar.gz → 2.6.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of urwid might be problematic. Click here for more details.
- {urwid-2.6.14 → urwid-2.6.16}/.github/workflows/pythonpackage.yml +6 -2
- {urwid-2.6.14 → urwid-2.6.16}/.pre-commit-config.yaml +3 -3
- {urwid-2.6.14 → urwid-2.6.16}/PKG-INFO +3 -1
- {urwid-2.6.14 → urwid-2.6.16}/README.rst +1 -0
- urwid-2.6.16/black-requirements.txt +1 -0
- {urwid-2.6.14 → urwid-2.6.16}/classifiers.txt +2 -1
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/subproc.py +2 -2
- {urwid-2.6.14 → urwid-2.6.16}/examples/subproc.py +2 -2
- urwid-2.6.16/pylint-requirements.txt +1 -0
- {urwid-2.6.14 → urwid-2.6.16}/pyproject.toml +1 -0
- urwid-2.6.16/ruff-requirements.txt +1 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_columns.py +1 -1
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_scrollable.py +15 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_tree.py +1 -2
- {urwid-2.6.14 → urwid-2.6.16}/tox.ini +1 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/canvas.py +9 -9
- {urwid-2.6.14 → urwid-2.6.16}/urwid/command_map.py +2 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/_posix_raw_display.py +18 -6
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/_win32_raw_display.py +5 -4
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/escape.py +9 -4
- {urwid-2.6.14 → urwid-2.6.16}/urwid/font.py +3 -3
- {urwid-2.6.14 → urwid-2.6.16}/urwid/util.py +1 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/version.py +2 -2
- {urwid-2.6.14 → urwid-2.6.16}/urwid/vterm.py +9 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/bar_graph.py +1 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/columns.py +2 -2
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/grid_flow.py +1 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/listbox.py +12 -11
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/pile.py +2 -2
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/progress_bar.py +10 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/scrollable.py +1 -1
- {urwid-2.6.14 → urwid-2.6.16}/urwid.egg-info/PKG-INFO +3 -1
- urwid-2.6.14/black-requirements.txt +0 -1
- urwid-2.6.14/pylint-requirements.txt +0 -1
- urwid-2.6.14/ruff-requirements.txt +0 -1
- {urwid-2.6.14 → urwid-2.6.16}/.coveralls.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.devcontainer/dev.dockerfile +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.devcontainer/devcontainer.json +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.dockerignore +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.editorconfig +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/CODE_OF_CONDUCT.md +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/ISSUE_TEMPLATE/docs.md +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/ISSUE_TEMPLATE/question.md +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/dependabot.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/labeler.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/release.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/workflows/documentation.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/workflows/isolated_static_check.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/workflows/labels.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.github/workflows/yamllint.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.gitignore +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/.yamllint.yml +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/COPYING +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/MANIFEST.in +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/Makefile +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/changelog.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/conf.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/bigtext.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/bigtext.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/bigtext1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/bigtext2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/bigtext3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/browse.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/browse.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/browse1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/browse2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/edit.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/edit.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/edit1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/edit2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/edit_text.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/graph.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/graph.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/graph1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/graph2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/index.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/palette_test.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/palette_test.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/palette_test1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/palette_test2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/pop_up.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/pop_up.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/pop_up1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/pop_up2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/real_browse.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/real_edit.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/subproc.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/subproc1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/subproc2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/subproc2.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/tour.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/tour.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/tour1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/examples/tour2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/index.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/bright_combinations.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/bright_combinations.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/bright_combinations1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/canvascache.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/displayattributes.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/displaymodules.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/encodings.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/display_modules.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/introduction.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/urwid_widgets.svgz +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/urwid_widgets_1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/urwid_widgets_1.xcf +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/urwid_widgets_2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/urwid_widgets_2.xcf +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/images/widget_layout.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/index.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/mainloop.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/overview.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/safe_combinations.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/safe_combinations.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/safe_combinations1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/textlayout.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/userinput.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/wanat.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/wanat_multi.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/wcur1.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/wcur2.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/widgets.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/wmod.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/manual/wsel.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/attrspec.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/canvas.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/command_map.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/constants.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/deprecated.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/display_modules.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/exceptions.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/global_settings.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/index.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/list_walkers.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/main_loop.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/meta.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/signals.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/text_layout.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/reference/widget.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tools/compile_pngs.sh +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tools/screenshots.sh +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tools/static/.placeholder +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tools/templates/indexcontent.html +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tools/templates/indexsidebar.html +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tools/templates/localtoc.html +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/adventure.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/adventure.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/adventure1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/adventure2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/adventure3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/adventure4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/cmenu.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/cmenu.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/cmenu1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/cmenu2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/cmenu3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/cmenu4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/highcolors.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/highcolors.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/highcolors1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/hmenu.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/hmenu.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/hmenu1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/hmenu2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/hmenu3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/hmenu4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/index.rst +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/input5.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/menu25.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/minimal.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/minimal.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/minimal1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/multiple.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/multiple.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/multiple1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/multiple2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/multiple3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/multiple4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/qa.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/qa.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/qa1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/qa2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/qa3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/sig.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/sig.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/sig1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/sig2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/sig3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/sig4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/smenu.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/smenu.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/smenu1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/smenu2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/smenu3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/urwid_attr.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/urwid_attr.py.xdotool +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/urwid_attr1.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/urwid_attr2.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/urwid_attr3.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/tutorial/urwid_attr4.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/docs/urwid-logo.png +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/asyncio_socket_server.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/bigtext.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/browse.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/calc.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/dialog.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/edit.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/fib.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/graph.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/input_test.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/lcd_cf635.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/palette_test.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/pop_up.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/subproc2.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/terminal.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/tour.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/treesample.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/twisted_serve_ssh.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/examples/twisted_serve_ssh.tac +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/isort-requirements.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/requirements.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/setup.cfg +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/setup.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/test_requirements.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/__init__.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_canvas.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_container.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_doctests.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_escapes.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_event_loops.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_filler.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_floatedit.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_font.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_frame.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_graphics.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_grid_flow.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_line_box.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_listbox.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_main_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_moved_imports.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_overlay.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_padding.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_pile.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_raw_display.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_signals.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_str_util.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_text_layout.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_util.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_vterm.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/test_widget.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/tests/util.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/__init__.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/container.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/decoration.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/__init__.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/_raw_display_base.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/_web.css +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/_web.js +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/_win32.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/common.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/curses.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/html_fragment.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/lcd.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/raw.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/display/web.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/__init__.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/abstract_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/asyncio_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/glib_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/main_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/select_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/tornado_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/trio_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/twisted_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/event_loop/zmq_loop.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/graphics.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/numedit.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/signals.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/split_repr.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/str_util.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/text_layout.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/__init__.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/attr_map.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/attr_wrap.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/big_text.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/box_adapter.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/constants.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/container.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/divider.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/edit.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/filler.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/frame.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/line_box.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/monitored_list.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/overlay.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/padding.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/popup.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/solid_fill.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/text.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/treetools.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/widget.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/widget_decoration.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/widget/wimp.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid/wimp.py +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid.egg-info/SOURCES.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid.egg-info/dependency_links.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid.egg-info/not-zip-safe +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid.egg-info/requires.txt +0 -0
- {urwid-2.6.14 → urwid-2.6.16}/urwid.egg-info/top_level.txt +0 -0
|
@@ -114,7 +114,11 @@ jobs:
|
|
|
114
114
|
os: [ "ubuntu-latest", "windows-latest" ]
|
|
115
115
|
# , "macos-latest"
|
|
116
116
|
# enable macOS only if OS specific branch will be added
|
|
117
|
-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
|
117
|
+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
|
|
118
|
+
exclude:
|
|
119
|
+
# Not supported by external requirements
|
|
120
|
+
- os: "windows-latest"
|
|
121
|
+
python-version: "3.13"
|
|
118
122
|
|
|
119
123
|
steps:
|
|
120
124
|
- uses: actions/checkout@v4
|
|
@@ -178,7 +182,7 @@ jobs:
|
|
|
178
182
|
|
|
179
183
|
- uses: actions/setup-python@v5
|
|
180
184
|
with:
|
|
181
|
-
python-version: "3.
|
|
185
|
+
python-version: "3.x"
|
|
182
186
|
|
|
183
187
|
- name: Install dependencies
|
|
184
188
|
run: pip install -U build
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
-
rev:
|
|
3
|
+
rev: v5.0.0
|
|
4
4
|
hooks:
|
|
5
5
|
- id: check-yaml
|
|
6
6
|
- id: end-of-file-fixer
|
|
@@ -20,13 +20,13 @@ repos:
|
|
|
20
20
|
types: [pyi]
|
|
21
21
|
|
|
22
22
|
- repo: https://github.com/psf/black
|
|
23
|
-
rev: 24.
|
|
23
|
+
rev: 24.10.0
|
|
24
24
|
hooks:
|
|
25
25
|
- id: black
|
|
26
26
|
|
|
27
27
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
28
28
|
# Ruff version.
|
|
29
|
-
rev: v0.
|
|
29
|
+
rev: v0.6.9
|
|
30
30
|
hooks:
|
|
31
31
|
- id: ruff
|
|
32
32
|
args: [ --fix, --exit-non-zero-on-fix ]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: urwid
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.16
|
|
4
4
|
Summary: A full-featured console (xterm et al.) user interface library
|
|
5
5
|
Home-page: https://urwid.org/
|
|
6
6
|
Author-email: Ian Ward <ian@excess.org>
|
|
@@ -29,6 +29,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
29
29
|
Classifier: Programming Language :: Python :: 3.10
|
|
30
30
|
Classifier: Programming Language :: Python :: 3.11
|
|
31
31
|
Classifier: Programming Language :: Python :: 3.12
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
32
33
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
33
34
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
34
35
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -148,6 +149,7 @@ Supported Python versions
|
|
|
148
149
|
- 3.10
|
|
149
150
|
- 3.11
|
|
150
151
|
- 3.12
|
|
152
|
+
- 3.13
|
|
151
153
|
- pypy3
|
|
152
154
|
|
|
153
155
|
Authors
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
black==24.10.0
|
|
@@ -16,6 +16,7 @@ Programming Language :: Python :: 3.9
|
|
|
16
16
|
Programming Language :: Python :: 3.10
|
|
17
17
|
Programming Language :: Python :: 3.11
|
|
18
18
|
Programming Language :: Python :: 3.12
|
|
19
|
+
Programming Language :: Python :: 3.13
|
|
19
20
|
Programming Language :: Python :: 3 :: Only
|
|
20
21
|
Programming Language :: Python :: Implementation :: CPython
|
|
21
|
-
Programming Language :: Python :: Implementation :: PyPy
|
|
22
|
+
Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -34,8 +34,8 @@ def received_output(data: bytes) -> bool:
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
write_fd = loop.watch_pipe(received_output)
|
|
37
|
-
with subprocess.Popen(
|
|
38
|
-
["python", "-u", run_me, str(factor_me)], # noqa:
|
|
37
|
+
with subprocess.Popen( # noqa: S603
|
|
38
|
+
["python", "-u", run_me, str(factor_me)], # noqa: S607 # Example can be insecure
|
|
39
39
|
stdout=write_fd,
|
|
40
40
|
close_fds=True,
|
|
41
41
|
) as proc:
|
|
@@ -34,8 +34,8 @@ def received_output(data: bytes) -> bool:
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
write_fd = loop.watch_pipe(received_output)
|
|
37
|
-
with subprocess.Popen(
|
|
38
|
-
["python", "-u", run_me, str(factor_me)], # noqa:
|
|
37
|
+
with subprocess.Popen( # noqa: S603
|
|
38
|
+
["python", "-u", run_me, str(factor_me)], # noqa: S607 # Example can be insecure
|
|
39
39
|
stdout=write_fd,
|
|
40
40
|
close_fds=True,
|
|
41
41
|
) as proc:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pylint==3.3.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruff==0.6.9
|
|
@@ -231,7 +231,7 @@ class ColumnsTest(unittest.TestCase):
|
|
|
231
231
|
|
|
232
232
|
def test_render_pack_item_not_fit(self):
|
|
233
233
|
items = urwid.Text("123"), urwid.Text("456")
|
|
234
|
-
widget = urwid.Columns((
|
|
234
|
+
widget = urwid.Columns((urwid.PACK, item) for item in items)
|
|
235
235
|
# Make width < widget fixed pack
|
|
236
236
|
width = items[0].pack(())[0] - 1
|
|
237
237
|
height = items[0].rows((width,))
|
|
@@ -291,6 +291,21 @@ class TestScrollBarListBox(unittest.TestCase):
|
|
|
291
291
|
|
|
292
292
|
self.assertEqual(top_position_rendered, widget.render(reduced_size).decoded_text)
|
|
293
293
|
|
|
294
|
+
def test_empty(self):
|
|
295
|
+
"""Empty widget should be correctly rendered."""
|
|
296
|
+
widget = urwid.ScrollBar(urwid.ListBox(urwid.SimpleListWalker(())))
|
|
297
|
+
reduced_size = (10, 5)
|
|
298
|
+
self.assertEqual(
|
|
299
|
+
(
|
|
300
|
+
" ",
|
|
301
|
+
" ",
|
|
302
|
+
" ",
|
|
303
|
+
" ",
|
|
304
|
+
" ",
|
|
305
|
+
),
|
|
306
|
+
widget.render(reduced_size).decoded_text,
|
|
307
|
+
)
|
|
308
|
+
|
|
294
309
|
|
|
295
310
|
def trivial_AttrMap(widget):
|
|
296
311
|
return urwid.AttrMap(widget, {})
|
|
@@ -2,13 +2,12 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
4
|
import unittest
|
|
5
|
-
from typing import Collection
|
|
6
5
|
|
|
7
6
|
import urwid
|
|
8
7
|
from urwid import TreeNode
|
|
9
8
|
|
|
10
9
|
if typing.TYPE_CHECKING:
|
|
11
|
-
from collections.abc import Hashable, Iterable
|
|
10
|
+
from collections.abc import Collection, Hashable, Iterable
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class SelfRegisteringParent(urwid.ParentNode):
|
|
@@ -40,7 +40,7 @@ from urwid.util import (
|
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
if typing.TYPE_CHECKING:
|
|
43
|
-
from collections.abc import Hashable, Iterable, Sequence
|
|
43
|
+
from collections.abc import Hashable, Iterable, Iterator, Sequence
|
|
44
44
|
|
|
45
45
|
from typing_extensions import Literal
|
|
46
46
|
|
|
@@ -126,7 +126,7 @@ class CanvasCache:
|
|
|
126
126
|
|
|
127
127
|
ref = weakref.ref(canvas, cls.cleanup)
|
|
128
128
|
cls._refs[ref] = (widget, wcls, size, focus)
|
|
129
|
-
cls._widgets.setdefault(widget, {})[
|
|
129
|
+
cls._widgets.setdefault(widget, {})[wcls, size, focus] = ref
|
|
130
130
|
|
|
131
131
|
@classmethod
|
|
132
132
|
def fetch(cls, widget, wcls, size, focus) -> Canvas | None:
|
|
@@ -182,7 +182,7 @@ class CanvasCache:
|
|
|
182
182
|
if not sizes:
|
|
183
183
|
return
|
|
184
184
|
with suppress(KeyError):
|
|
185
|
-
del sizes[
|
|
185
|
+
del sizes[wcls, size, focus]
|
|
186
186
|
if not sizes:
|
|
187
187
|
with contextlib.suppress(KeyError):
|
|
188
188
|
del cls._widgets[widget]
|
|
@@ -282,7 +282,7 @@ class Canvas:
|
|
|
282
282
|
cols: int | None = None,
|
|
283
283
|
rows: int | None = None,
|
|
284
284
|
attr=None,
|
|
285
|
-
) ->
|
|
285
|
+
) -> Iterator[list[tuple[object, Literal["0", "U"] | None, bytes]]]:
|
|
286
286
|
raise NotImplementedError()
|
|
287
287
|
|
|
288
288
|
def cols(self) -> int:
|
|
@@ -376,7 +376,7 @@ class TextCanvas(Canvas):
|
|
|
376
376
|
|
|
377
377
|
def __init__(
|
|
378
378
|
self,
|
|
379
|
-
text:
|
|
379
|
+
text: list[bytes] | None = None,
|
|
380
380
|
attr: list[list[tuple[Hashable | None, int]]] | None = None,
|
|
381
381
|
cs: list[list[tuple[Literal["0", "U"] | None, int]]] | None = None,
|
|
382
382
|
cursor: tuple[int, int] | None = None,
|
|
@@ -477,7 +477,7 @@ class TextCanvas(Canvas):
|
|
|
477
477
|
cols: int | None = 0,
|
|
478
478
|
rows: int | None = 0,
|
|
479
479
|
attr=None,
|
|
480
|
-
) ->
|
|
480
|
+
) -> Iterator[tuple[object, Literal["0", "U"] | None, bytes]]:
|
|
481
481
|
"""
|
|
482
482
|
Return the canvas content as a list of rows where each row
|
|
483
483
|
is a list of (attr, cs, text) tuples.
|
|
@@ -551,7 +551,7 @@ class BlankCanvas(Canvas):
|
|
|
551
551
|
cols: int | None = 0,
|
|
552
552
|
rows: int | None = 0,
|
|
553
553
|
attr=None,
|
|
554
|
-
) ->
|
|
554
|
+
) -> Iterator[list[tuple[object, Literal["0", "U"] | None, bytes]]]:
|
|
555
555
|
"""
|
|
556
556
|
return (cols, rows) of spaces with default attributes.
|
|
557
557
|
"""
|
|
@@ -603,7 +603,7 @@ class SolidCanvas(Canvas):
|
|
|
603
603
|
cols: int | None = None,
|
|
604
604
|
rows: int | None = None,
|
|
605
605
|
attr=None,
|
|
606
|
-
) ->
|
|
606
|
+
) -> Iterator[list[tuple[object, Literal["0", "U"] | None, bytes]]]:
|
|
607
607
|
if cols is None:
|
|
608
608
|
cols = self.size[0]
|
|
609
609
|
if rows is None:
|
|
@@ -704,7 +704,7 @@ class CompositeCanvas(Canvas):
|
|
|
704
704
|
cols: int | None = None,
|
|
705
705
|
rows: int | None = None,
|
|
706
706
|
attr=None,
|
|
707
|
-
) ->
|
|
707
|
+
) -> Iterator[list[tuple[object, Literal["0", "U"] | None, bytes]]]:
|
|
708
708
|
"""
|
|
709
709
|
Return the canvas content as a list of rows where each row
|
|
710
710
|
is a list of (attr, cs, text) tuples.
|
|
@@ -56,6 +56,7 @@ class Screen(_raw_display_base.Screen):
|
|
|
56
56
|
input: typing.TextIO = sys.stdin, # noqa: A002 # pylint: disable=redefined-builtin
|
|
57
57
|
output: typing.TextIO = sys.stdout,
|
|
58
58
|
bracketed_paste_mode=False,
|
|
59
|
+
focus_reporting=False,
|
|
59
60
|
) -> None:
|
|
60
61
|
"""Initialize a screen that directly prints escape codes to an output
|
|
61
62
|
terminal.
|
|
@@ -63,11 +64,15 @@ class Screen(_raw_display_base.Screen):
|
|
|
63
64
|
bracketed_paste_mode -- enable bracketed paste mode in the host terminal.
|
|
64
65
|
If the host terminal supports it, the application will receive `begin paste`
|
|
65
66
|
and `end paste` keystrokes when the user pastes text.
|
|
67
|
+
focus_reporting -- enable focus reporting in the host terminal.
|
|
68
|
+
If the host terminal supports it, the application will receive `focus in`
|
|
69
|
+
and `focus out` keystrokes when the application gains and loses focus.
|
|
66
70
|
"""
|
|
67
71
|
super().__init__(input, output)
|
|
68
72
|
self.gpm_mev: Popen | None = None
|
|
69
73
|
self.gpm_event_pending: bool = False
|
|
70
74
|
self.bracketed_paste_mode = bracketed_paste_mode
|
|
75
|
+
self.focus_reporting = focus_reporting
|
|
71
76
|
|
|
72
77
|
# These store the previous signal handlers after setting ours
|
|
73
78
|
self._prev_sigcont_handler = None
|
|
@@ -79,7 +84,8 @@ class Screen(_raw_display_base.Screen):
|
|
|
79
84
|
f"<{self.__class__.__name__}("
|
|
80
85
|
f"input={self._term_input_file}, "
|
|
81
86
|
f"output={self._term_output_file}, "
|
|
82
|
-
f"bracketed_paste_mode={self.bracketed_paste_mode}
|
|
87
|
+
f"bracketed_paste_mode={self.bracketed_paste_mode}, "
|
|
88
|
+
f"focus_reporting={self.focus_reporting})>"
|
|
83
89
|
)
|
|
84
90
|
|
|
85
91
|
def _sigwinch_handler(self, signum: int = 28, frame: FrameType | None = None) -> None:
|
|
@@ -148,8 +154,8 @@ class Screen(_raw_display_base.Screen):
|
|
|
148
154
|
if not os.environ.get("TERM", "").lower().startswith("linux"):
|
|
149
155
|
return
|
|
150
156
|
|
|
151
|
-
m = Popen( # pylint: disable=consider-using-with
|
|
152
|
-
["/usr/bin/mev", "-e", "158"],
|
|
157
|
+
m = Popen( # noqa: S603 # pylint: disable=consider-using-with
|
|
158
|
+
["/usr/bin/mev", "-e", "158"],
|
|
153
159
|
stdin=PIPE,
|
|
154
160
|
stdout=PIPE,
|
|
155
161
|
close_fds=True,
|
|
@@ -180,6 +186,9 @@ class Screen(_raw_display_base.Screen):
|
|
|
180
186
|
if self.bracketed_paste_mode:
|
|
181
187
|
self.write(escape.ENABLE_BRACKETED_PASTE_MODE)
|
|
182
188
|
|
|
189
|
+
if self.focus_reporting:
|
|
190
|
+
self.write(escape.ENABLE_FOCUS_REPORTING)
|
|
191
|
+
|
|
183
192
|
fd = self._input_fileno()
|
|
184
193
|
if fd is not None and os.isatty(fd):
|
|
185
194
|
self._old_termios_settings = termios.tcgetattr(fd)
|
|
@@ -207,15 +216,18 @@ class Screen(_raw_display_base.Screen):
|
|
|
207
216
|
if self.bracketed_paste_mode:
|
|
208
217
|
self.write(escape.DISABLE_BRACKETED_PASTE_MODE)
|
|
209
218
|
|
|
219
|
+
if self.focus_reporting:
|
|
220
|
+
self.write(escape.DISABLE_FOCUS_REPORTING)
|
|
221
|
+
|
|
210
222
|
signals.emit_signal(self, INPUT_DESCRIPTORS_CHANGED)
|
|
211
223
|
|
|
212
224
|
self.signal_restore()
|
|
213
225
|
|
|
226
|
+
self._stop_mouse_restore_buffer()
|
|
227
|
+
|
|
214
228
|
fd = self._input_fileno()
|
|
215
229
|
if fd is not None and os.isatty(fd):
|
|
216
|
-
termios.tcsetattr(fd, termios.
|
|
217
|
-
|
|
218
|
-
self._stop_mouse_restore_buffer()
|
|
230
|
+
termios.tcsetattr(fd, termios.TCSAFLUSH, self._old_termios_settings)
|
|
219
231
|
|
|
220
232
|
if self._old_signal_keys:
|
|
221
233
|
self.tty_signal_keys(*self._old_signal_keys, fd)
|
|
@@ -246,11 +246,12 @@ class ReadInputThread(threading.Thread):
|
|
|
246
246
|
if not inp.Event.KeyEvent.bKeyDown:
|
|
247
247
|
continue
|
|
248
248
|
|
|
249
|
-
input_data = inp.Event.KeyEvent.uChar.
|
|
250
|
-
# On Windows atomic press/release of modifier keys produce phantom input with code NULL
|
|
249
|
+
input_data = inp.Event.KeyEvent.uChar.UnicodeChar
|
|
250
|
+
# On Windows atomic press/release of modifier keys produce phantom input with code NULL.
|
|
251
251
|
# This input cannot be decoded and should be handled as garbage.
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
input_bytes = input_data.encode("utf-8")
|
|
253
|
+
if input_bytes != b"\x00":
|
|
254
|
+
self._input.send(input_bytes)
|
|
254
255
|
|
|
255
256
|
elif inp.EventType == _win32.EventType.WINDOW_BUFFER_SIZE_EVENT:
|
|
256
257
|
self._resize()
|
|
@@ -32,7 +32,7 @@ from collections.abc import MutableMapping, Sequence
|
|
|
32
32
|
from urwid import str_util
|
|
33
33
|
|
|
34
34
|
if typing.TYPE_CHECKING:
|
|
35
|
-
from collections.abc import
|
|
35
|
+
from collections.abc import Iterable
|
|
36
36
|
|
|
37
37
|
# NOTE: because of circular imports (urwid.util -> urwid.escape -> urwid.util)
|
|
38
38
|
# from urwid.util import is_mouse_event -- will not work here
|
|
@@ -85,6 +85,8 @@ input_sequences = [
|
|
|
85
85
|
("[F", "end"),
|
|
86
86
|
("[G", "5"),
|
|
87
87
|
("[H", "home"),
|
|
88
|
+
("[I", "focus in"),
|
|
89
|
+
("[O", "focus out"),
|
|
88
90
|
("[1~", "home"),
|
|
89
91
|
("[2~", "insert"),
|
|
90
92
|
("[3~", "delete"),
|
|
@@ -225,7 +227,7 @@ class KeyqueueTrie:
|
|
|
225
227
|
MutableMapping[int, str | MutableMapping[int, str | MutableMapping[int, str]]]
|
|
226
228
|
| typing.Literal["mouse", "sgrmouse"]
|
|
227
229
|
),
|
|
228
|
-
keys:
|
|
230
|
+
keys: Sequence[int],
|
|
229
231
|
more_available: bool,
|
|
230
232
|
):
|
|
231
233
|
if not isinstance(root, MutableMapping):
|
|
@@ -245,7 +247,7 @@ class KeyqueueTrie:
|
|
|
245
247
|
return None
|
|
246
248
|
return self.get_recurse(root[keys[0]], keys[1:], more_available)
|
|
247
249
|
|
|
248
|
-
def read_mouse_info(self, keys:
|
|
250
|
+
def read_mouse_info(self, keys: Sequence[int], more_available: bool):
|
|
249
251
|
if len(keys) < 3:
|
|
250
252
|
if more_available:
|
|
251
253
|
raise MoreInputRequired()
|
|
@@ -284,7 +286,7 @@ class KeyqueueTrie:
|
|
|
284
286
|
|
|
285
287
|
return ((f"{prefix}mouse {action}", button, x, y), keys[3:])
|
|
286
288
|
|
|
287
|
-
def read_sgrmouse_info(self, keys:
|
|
289
|
+
def read_sgrmouse_info(self, keys: Sequence[int], more_available: bool):
|
|
288
290
|
# Helpful links:
|
|
289
291
|
# https://stackoverflow.com/questions/5966903/how-to-get-mousemove-and-mouseclick-in-bash
|
|
290
292
|
# http://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf
|
|
@@ -574,6 +576,9 @@ RESTORE_NORMAL_BUFFER = f"{ESC}[?1049l"
|
|
|
574
576
|
ENABLE_BRACKETED_PASTE_MODE = f"{ESC}[?2004h"
|
|
575
577
|
DISABLE_BRACKETED_PASTE_MODE = f"{ESC}[?2004l"
|
|
576
578
|
|
|
579
|
+
ENABLE_FOCUS_REPORTING = f"{ESC}[?1004h"
|
|
580
|
+
DISABLE_FOCUS_REPORTING = f"{ESC}[?1004l"
|
|
581
|
+
|
|
577
582
|
# RESET_SCROLL_REGION = ESC+"[;r"
|
|
578
583
|
# RESET = ESC+"c"
|
|
579
584
|
|
|
@@ -192,9 +192,9 @@ class Font(metaclass=FontRegistry):
|
|
|
192
192
|
|
|
193
193
|
__slots__ = ("canvas", "char", "utf8_required")
|
|
194
194
|
|
|
195
|
-
height: int
|
|
196
|
-
data: Sequence[str]
|
|
197
|
-
name: str
|
|
195
|
+
height: int # pylint: disable=declare-non-slot
|
|
196
|
+
data: Sequence[str] # pylint: disable=declare-non-slot
|
|
197
|
+
name: str # pylint: disable=declare-non-slot
|
|
198
198
|
|
|
199
199
|
def __init__(self) -> None:
|
|
200
200
|
if not self.height:
|
|
@@ -143,7 +143,7 @@ def get_encoding() -> str:
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
@contextlib.contextmanager
|
|
146
|
-
def set_temporary_encoding(encoding_name: str) -> Generator[None
|
|
146
|
+
def set_temporary_encoding(encoding_name: str) -> Generator[None]:
|
|
147
147
|
"""Internal helper for encoding specific validation in unittests/doctests.
|
|
148
148
|
|
|
149
149
|
Not exported globally.
|
|
@@ -375,7 +375,7 @@ class TermCanvas(Canvas):
|
|
|
375
375
|
lines = self.height // 2
|
|
376
376
|
|
|
377
377
|
if not up:
|
|
378
|
-
lines = -lines
|
|
378
|
+
lines = -lines
|
|
379
379
|
|
|
380
380
|
maxscroll = len(self.scrollback_buffer)
|
|
381
381
|
self.scrolling_up += lines
|
|
@@ -1118,6 +1118,14 @@ class TermCanvas(Canvas):
|
|
|
1118
1118
|
elif 40 <= attr <= 47:
|
|
1119
1119
|
bg = attr - 40
|
|
1120
1120
|
colors = max(16, colors)
|
|
1121
|
+
# AIXTERM bright color spec
|
|
1122
|
+
# https://en.wikipedia.org/wiki/ANSI_escape_code
|
|
1123
|
+
elif 90 <= attr <= 97:
|
|
1124
|
+
fg = attr - 90 + 8
|
|
1125
|
+
colors = max(16, colors)
|
|
1126
|
+
elif 100 <= attr <= 107:
|
|
1127
|
+
bg = attr - 100 + 8
|
|
1128
|
+
colors = max(16, colors)
|
|
1121
1129
|
elif attr in {38, 48}:
|
|
1122
1130
|
if idx + 2 < len(attrs) and attrs[idx + 1] == 5:
|
|
1123
1131
|
# 8 bit color specification
|
|
@@ -400,7 +400,7 @@ class Columns(Widget, WidgetContainerMixin, WidgetContainerListContentsMixin):
|
|
|
400
400
|
chain(self.contents, repeat((None, (WHSettings.WEIGHT, 1, False)))),
|
|
401
401
|
)
|
|
402
402
|
]
|
|
403
|
-
if focus_position < len(widgets):
|
|
403
|
+
if focus_position < len(widgets):
|
|
404
404
|
self.focus_position = focus_position
|
|
405
405
|
|
|
406
406
|
@property
|
|
@@ -441,7 +441,7 @@ class Columns(Widget, WidgetContainerMixin, WidgetContainerListContentsMixin):
|
|
|
441
441
|
(w, ({Sizing.FIXED: WHSettings.GIVEN, Sizing.FLOW: WHSettings.PACK}.get(new_t, new_t), new_n, b))
|
|
442
442
|
for ((new_t, new_n), (w, (t, n, b))) in zip(column_types, self.contents)
|
|
443
443
|
]
|
|
444
|
-
if focus_position < len(column_types):
|
|
444
|
+
if focus_position < len(column_types):
|
|
445
445
|
self.focus_position = focus_position
|
|
446
446
|
|
|
447
447
|
@property
|
|
@@ -166,7 +166,7 @@ class GridFlow(WidgetWrap[Pile], WidgetContainerMixin, WidgetContainerListConten
|
|
|
166
166
|
)
|
|
167
167
|
focus_position = self.focus_position
|
|
168
168
|
self.contents = [(new, (WHSettings.GIVEN, self._cell_width)) for new in widgets]
|
|
169
|
-
if focus_position < len(widgets):
|
|
169
|
+
if focus_position < len(widgets):
|
|
170
170
|
self.focus_position = focus_position
|
|
171
171
|
|
|
172
172
|
def _get_cells(self):
|
|
@@ -645,17 +645,18 @@ class ListBox(Widget, WidgetContainerMixin):
|
|
|
645
645
|
rows = 0
|
|
646
646
|
|
|
647
647
|
focused_w, idx = self.body.get_focus()
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
648
|
+
if focused_w:
|
|
649
|
+
rows += focused_w.rows((cols,), focus)
|
|
650
|
+
|
|
651
|
+
prev, pos = self._body.get_prev(idx)
|
|
652
|
+
while prev is not None:
|
|
653
|
+
rows += prev.rows((cols,), False)
|
|
654
|
+
prev, pos = self._body.get_prev(pos)
|
|
655
|
+
|
|
656
|
+
next_, pos = self.body.get_next(idx)
|
|
657
|
+
while next_ is not None:
|
|
658
|
+
rows += next_.rows((cols,), True)
|
|
659
|
+
next_, pos = self._body.get_next(pos)
|
|
659
660
|
|
|
660
661
|
self._rows_max_cached = rows
|
|
661
662
|
|
|
@@ -325,7 +325,7 @@ class Pile(Widget, WidgetContainerMixin, WidgetContainerListContentsMixin):
|
|
|
325
325
|
chain(self.contents, repeat((None, (WHSettings.WEIGHT, 1)))),
|
|
326
326
|
)
|
|
327
327
|
]
|
|
328
|
-
if focus_position < len(widgets):
|
|
328
|
+
if focus_position < len(widgets):
|
|
329
329
|
self.focus_position = focus_position
|
|
330
330
|
|
|
331
331
|
@property
|
|
@@ -365,7 +365,7 @@ class Pile(Widget, WidgetContainerMixin, WidgetContainerListContentsMixin):
|
|
|
365
365
|
(w, ({Sizing.FIXED: WHSettings.GIVEN, Sizing.FLOW: WHSettings.PACK}.get(new_t, new_t), new_height))
|
|
366
366
|
for ((new_t, new_height), (w, options)) in zip(item_types, self.contents)
|
|
367
367
|
]
|
|
368
|
-
if focus_position < len(item_types):
|
|
368
|
+
if focus_position < len(item_types):
|
|
369
369
|
self.focus_position = focus_position
|
|
370
370
|
|
|
371
371
|
@property
|
|
@@ -8,6 +8,8 @@ from .text import Text
|
|
|
8
8
|
from .widget import Widget
|
|
9
9
|
|
|
10
10
|
if typing.TYPE_CHECKING:
|
|
11
|
+
from collections.abc import Hashable
|
|
12
|
+
|
|
11
13
|
from urwid.canvas import TextCanvas
|
|
12
14
|
|
|
13
15
|
|
|
@@ -18,7 +20,14 @@ class ProgressBar(Widget):
|
|
|
18
20
|
|
|
19
21
|
text_align = Align.CENTER
|
|
20
22
|
|
|
21
|
-
def __init__(
|
|
23
|
+
def __init__(
|
|
24
|
+
self,
|
|
25
|
+
normal: Hashable | None,
|
|
26
|
+
complete: Hashable | None,
|
|
27
|
+
current: int = 0,
|
|
28
|
+
done: int = 100,
|
|
29
|
+
satt: Hashable | None = None,
|
|
30
|
+
) -> None:
|
|
22
31
|
"""
|
|
23
32
|
:param normal: display attribute for incomplete part of progress bar
|
|
24
33
|
:param complete: display attribute for complete part of progress bar
|
|
@@ -537,7 +537,7 @@ class ScrollBar(WidgetDecoration[WrappedWidget]):
|
|
|
537
537
|
if use_relative:
|
|
538
538
|
# `operator.length_hint` is Protocol (Spec) over class based and can end false-negative on the instance
|
|
539
539
|
# use length_hint-like approach with safe `AttributeError` handling
|
|
540
|
-
ow_len = getattr(ow_base, "__len__", getattr(ow_base, "__length_hint__",
|
|
540
|
+
ow_len = getattr(ow_base, "__len__", getattr(ow_base, "__length_hint__", int))()
|
|
541
541
|
ow_canv = render_for_scrollbar()
|
|
542
542
|
visible_amount = ow_base.get_visible_amount(ow_size, focus)
|
|
543
543
|
pos = ow_base.get_first_visible_pos(ow_size, focus)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: urwid
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.16
|
|
4
4
|
Summary: A full-featured console (xterm et al.) user interface library
|
|
5
5
|
Home-page: https://urwid.org/
|
|
6
6
|
Author-email: Ian Ward <ian@excess.org>
|
|
@@ -29,6 +29,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
29
29
|
Classifier: Programming Language :: Python :: 3.10
|
|
30
30
|
Classifier: Programming Language :: Python :: 3.11
|
|
31
31
|
Classifier: Programming Language :: Python :: 3.12
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
32
33
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
33
34
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
34
35
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -148,6 +149,7 @@ Supported Python versions
|
|
|
148
149
|
- 3.10
|
|
149
150
|
- 3.11
|
|
150
151
|
- 3.12
|
|
152
|
+
- 3.13
|
|
151
153
|
- pypy3
|
|
152
154
|
|
|
153
155
|
Authors
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
black==24.4.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pylint==3.2.3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruff==0.4.8
|
|
File without changes
|
|
File without changes
|