diff options
| author | troido <troido@protonmail.com> | 2019-09-18 14:07:08 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2019-09-18 14:07:08 +0200 |
| commit | 419a2c886c476b121606c319331ed3a6d54aa848 (patch) | |
| tree | 72a9dcd2e43200d12c7cd84fd90e53c140999256 /asciifarm/client/display.py | |
| parent | 3cd8036e3b49958eb53cb19df4423c1e75e2f44b (diff) | |
adapted to changed ratuil api and removed healthfull and healthempty in charmaps
Diffstat (limited to 'asciifarm/client/display.py')
| -rw-r--r-- | asciifarm/client/display.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/asciifarm/client/display.py b/asciifarm/client/display.py index 13e4f6a..2e8cc6c 100644 --- a/asciifarm/client/display.py +++ b/asciifarm/client/display.py @@ -43,10 +43,7 @@ class Display: self.messageColours = charMap.get("msgcolours", {}) fname = os.path.join(os.path.dirname(__file__), "layout.xml") - with open(fname) as f: - layouttext = f.read() - - self.layout = Layout(layouttext) + self.layout = Layout.from_xml_file(fname) self.layout.get("field").set_char_size(charMap.get("charwidth", 1)) self.screen = Screen() |
