ui: use custom button

This commit is contained in:
rr-
2018-11-05 21:04:39 +01:00
parent 7a1febe16e
commit cbc7a1a6d7
5 changed files with 31 additions and 10 deletions
+11
View File
@@ -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",
)