mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
ui: use custom button
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import urwid
|
||||
|
||||
|
||||
class MenuButton(urwid.Button):
|
||||
def __init__(self, label, *args, **kwargs):
|
||||
super().__init__("", *args, **kwargs)
|
||||
self._w = urwid.AttrMap(
|
||||
urwid.SelectableIcon(["\N{BULLET} ", label], 2),
|
||||
"button",
|
||||
"button-focus",
|
||||
)
|
||||
Reference in New Issue
Block a user