mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
ui: rename Ui class to UrwidUserInterface
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import typing as T
|
||||
|
||||
import urwid
|
||||
|
||||
|
||||
class CustomLineBox(urwid.AttrMap):
|
||||
def __init__(
|
||||
self, widget: urwid.Widget, *args: T.Any, **kwargs: T.Any
|
||||
) -> None:
|
||||
super().__init__(
|
||||
urwid.LineBox(
|
||||
urwid.AttrMap(widget, "linebox-content", "linebox-content"),
|
||||
*args,
|
||||
**kwargs,
|
||||
),
|
||||
"linebox",
|
||||
"linebox-focus",
|
||||
)
|
||||
Reference in New Issue
Block a user