From 02ed3d1e4a53089f2e29ac40cd7c6e05f5ff2194 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 11 Mar 2023 01:00:09 -0800 Subject: [PATCH] Add a title to the window :) --- erynrl/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erynrl/__main__.py b/erynrl/__main__.py index 9b96c14..2a79e44 100644 --- a/erynrl/__main__.py +++ b/erynrl/__main__.py @@ -12,6 +12,9 @@ from .geometry import Size from .interface import Interface +TITLE = 'ErynRL' + + def parse_args(argv, *a, **kw): parser = argparse.ArgumentParser(*a, **kw) parser.add_argument('--debug', action='store_true', default=True) @@ -53,7 +56,7 @@ def main(argv): interface = Interface(configuration.console_size, engine) tileset = configuration.console_font_configuration.tileset - with tcod.context.new(columns=interface.console.width, rows=interface.console.height, tileset=tileset) as context: + with tcod.context.new(columns=interface.console.width, rows=interface.console.height, tileset=tileset, title=TITLE) as context: interface.run_event_loop(context) return 0