mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-05 15:45:08 -04:00
Text UI general structure
This commit is contained in:
parent
c039ff2e2a
commit
9693e3e814
7 changed files with 227 additions and 0 deletions
21
nomadnet/ui/textui/Map.py
Normal file
21
nomadnet/ui/textui/Map.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
class MapDisplayShortcuts():
|
||||
def __init__(self, app):
|
||||
import urwid
|
||||
self.app = app
|
||||
|
||||
self.widget = urwid.AttrMap(urwid.Text("Map Display Shortcuts"), "shortcutbar")
|
||||
|
||||
class MapDisplay():
|
||||
def __init__(self, app):
|
||||
import urwid
|
||||
self.app = app
|
||||
|
||||
pile = urwid.Pile([
|
||||
urwid.Text(("body_text", "Map Display \U0001F332")),
|
||||
])
|
||||
|
||||
self.shortcuts_display = MapDisplayShortcuts(self.app)
|
||||
self.widget = urwid.Filler(pile, 'top')
|
||||
|
||||
def shortcuts(self):
|
||||
return self.shortcuts_display
|
Loading…
Add table
Add a link
Reference in a new issue