From 3ed17230c18053efc1835a0030b8d280be53c31e Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 5 Sep 2018 18:46:29 +0200 Subject: made win and argument to update and made it possible for windows to be hidden --- asciifarm/client/display/textinput.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'asciifarm/client/display/textinput.py') diff --git a/asciifarm/client/display/textinput.py b/asciifarm/client/display/textinput.py index fb27a08..3b5def2 100644 --- a/asciifarm/client/display/textinput.py +++ b/asciifarm/client/display/textinput.py @@ -16,8 +16,7 @@ class TextInput: self.cursor = cursor self.widget.change() - def update(self): - win = self.widget.getWin() + def update(self, win): width, height = win.getSize() win.erase() win.addLine((0, 0), self.text[:width]) -- cgit