mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
11 lines
276 B
Python
11 lines
276 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.refresh()
|