File: util.py

package info (click to toggle)
urwid 2.6.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 3,236 kB
  • sloc: python: 29,290; javascript: 382; sh: 34; makefile: 22
file content (11 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from __future__ import annotations

import urwid


class SelectableText(urwid.Text):
    def selectable(self):
        return True

    def keypress(self, size, key):
        return key