mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
14 lines
342 B
Python
14 lines
342 B
Python
import typing as T
|
|
|
|
import urwid
|
|
|
|
|
|
class MenuButton(urwid.Button):
|
|
def __init__(self, label: str, *args: T.Any, **kwargs: T.Any) -> None:
|
|
super().__init__("", *args, **kwargs)
|
|
self._w = urwid.AttrMap(
|
|
urwid.SelectableIcon(["\N{BULLET} ", label], 2),
|
|
"button",
|
|
"button-focus",
|
|
)
|