NomadNet/nomadnet/ui/textui/Directory.py
Aleksei Stepanov 77eca5d23e Use urwid constants for widgets instead of string equivalents
* Reduce `DeprecationWarning` amount:
  `get_focus` -> `focus_position` for `Frame` and `focus` for `Pile`
  `set_focus` -> use property `focus_position`
2024-01-18 11:58:22 +01:00

21 lines
599 B
Python

class DirectoryDisplayShortcuts():
def __init__(self, app):
import urwid
self.app = app
self.widget = urwid.AttrMap(urwid.Text("Directory Display Shortcuts"), "shortcutbar")
class DirectoryDisplay():
def __init__(self, app):
import urwid
self.app = app
pile = urwid.Pile([
urwid.Text(("body_text", "Directory Display \U0001F332")),
])
self.shortcuts_display = DirectoryDisplayShortcuts(self.app)
self.widget = urwid.Filler(pile, urwid.TOP)
def shortcuts(self):
return self.shortcuts_display