mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-28 22:33:59 -06:00
11 lines
280 B
Python
11 lines
280 B
Python
from .base import WindowWrapper
|
|
|
|
|
|
class Label(WindowWrapper):
|
|
def set_text(self, text: str) -> None:
|
|
if not self._win:
|
|
return
|
|
self._win.erase()
|
|
self._win.addnstr(text, min(len(text), self.getmaxyx()[1] - 1))
|
|
self._win.noutrefresh()
|