diff options
| author | troido <troido@protonmail.com> | 2022-01-23 10:49:00 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2022-01-23 10:49:00 +0100 |
| commit | 80800427764fed38b33becd214fa94b3bc928403 (patch) | |
| tree | 973714d2a4dddd1b15c5d8b2050742f72c597cfb | |
| parent | 331ab7d810c1ed660150d18eef5938d124342bc1 (diff) | |
| -rw-r--r-- | asciifarmclient/display.py | 7 | ||||
| -rw-r--r-- | asciifarmclient/layout.xml | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/asciifarmclient/display.py b/asciifarmclient/display.py index cec0bc1..eb3f6a7 100644 --- a/asciifarmclient/display.py +++ b/asciifarmclient/display.py @@ -48,7 +48,8 @@ class Display: def resizeField(self, size): self.getWidget("field").set_size(*size) - self.getWidget("fieldbackground").change() + self.screen.clear() + self.update(True) def drawFieldCells(self, cells): field = self.getWidget("field") @@ -126,8 +127,8 @@ class Display: def setInputString(self, string, cursor): self.getWidget("textinput").set_text(string, cursor) - def update(self): - self.layout.update() + def update(self, force=False): + self.layout.update(force) self.screen.update() def update_size(self): diff --git a/asciifarmclient/layout.xml b/asciifarmclient/layout.xml index 0a29caa..5045737 100644 --- a/asciifarmclient/layout.xml +++ b/asciifarmclient/layout.xml @@ -27,9 +27,6 @@ <log id="msg" align="bottom" height="20%%"> Welcome to asciifarm </log> - <overlay> - <fill id="fieldbackground" char=" "></fill> - <field id="field"></field> - </overlay> + <field id="field"></field> </vbox> </hbox> |
