2021-05-04 05:08:16 -04:00
|
|
|
class IntroDisplay():
|
|
|
|
def __init__(self, app):
|
|
|
|
import urwid
|
|
|
|
self.app = app
|
|
|
|
|
|
|
|
font = urwid.font.HalfBlock5x4Font()
|
|
|
|
|
2022-04-08 04:29:52 -04:00
|
|
|
big_text = urwid.BigText(("intro_title", self.app.config["textui"]["intro_text"]), font)
|
2024-01-18 05:58:22 -05:00
|
|
|
big_text = urwid.Padding(big_text, align=urwid.CENTER, width=urwid.CLIP)
|
2021-05-04 05:08:16 -04:00
|
|
|
|
|
|
|
intro = urwid.Pile([
|
|
|
|
big_text,
|
2024-01-18 05:58:22 -05:00
|
|
|
urwid.Text(("Version %s" % (str(self.app.version))), align=urwid.CENTER),
|
2021-05-04 05:08:16 -04:00
|
|
|
urwid.Divider(),
|
2024-01-18 05:58:22 -05:00
|
|
|
urwid.Text(("-= Starting =- "), align=urwid.CENTER),
|
2021-05-04 05:08:16 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
self.widget = urwid.Filler(intro)
|
|
|
|
|