mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-12-27 16:19:33 -05:00
77eca5d23e
* Reduce `DeprecationWarning` amount: `get_focus` -> `focus_position` for `Frame` and `focus` for `Pile` `set_focus` -> use property `focus_position`
20 lines
607 B
Python
20 lines
607 B
Python
class IntroDisplay():
|
|
def __init__(self, app):
|
|
import urwid
|
|
self.app = app
|
|
|
|
font = urwid.font.HalfBlock5x4Font()
|
|
|
|
big_text = urwid.BigText(("intro_title", self.app.config["textui"]["intro_text"]), font)
|
|
big_text = urwid.Padding(big_text, align=urwid.CENTER, width=urwid.CLIP)
|
|
|
|
intro = urwid.Pile([
|
|
big_text,
|
|
urwid.Text(("Version %s" % (str(self.app.version))), align=urwid.CENTER),
|
|
urwid.Divider(),
|
|
urwid.Text(("-= Starting =- "), align=urwid.CENTER),
|
|
])
|
|
|
|
self.widget = urwid.Filler(intro)
|
|
|