Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
urwid-uikit / text.py
Size: Mime:
"""Text-related urwid widgets."""

from urwid import Text

__all__ = ("SelectableText",)


class SelectableText(Text):
    """Subclass of Text_ that can be selectable. Useful as a child widget in
    list boxes.
    """

    def selectable(self) -> bool:
        return True

    def keypress(self, size, key: str) -> str:
        return key