mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-28 22:33:59 -06:00
ui: remove unused custom list box
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
import typing as T
|
|
||||||
|
|
||||||
import urwid
|
|
||||||
|
|
||||||
|
|
||||||
class CustomListWalker(urwid.SimpleFocusListWalker):
|
|
||||||
def append(self, item: T.Any) -> None:
|
|
||||||
super().append(item)
|
|
||||||
self.set_focus(len(self) - 1)
|
|
||||||
|
|
||||||
|
|
||||||
class CustomListBox(urwid.ListBox):
|
|
||||||
def __init__(self, widgets: T.List[urwid.Widget]) -> None:
|
|
||||||
super().__init__(CustomListWalker(widgets))
|
|
||||||
@@ -15,7 +15,6 @@ from pqcli.mechanic import (
|
|||||||
Spell,
|
Spell,
|
||||||
)
|
)
|
||||||
from pqcli.ui.custom_line_box import CustomLineBox
|
from pqcli.ui.custom_line_box import CustomLineBox
|
||||||
from pqcli.ui.custom_list_box import CustomListBox
|
|
||||||
from pqcli.ui.custom_progress_bar import CustomProgressBar
|
from pqcli.ui.custom_progress_bar import CustomProgressBar
|
||||||
from pqcli.ui.data_table import DataTable
|
from pqcli.ui.data_table import DataTable
|
||||||
from pqcli.ui.double_line_box import DoubleLineBox
|
from pqcli.ui.double_line_box import DoubleLineBox
|
||||||
|
|||||||
Reference in New Issue
Block a user