diff options
| author | troido <troido@protonmail.com> | 2018-09-06 15:11:54 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-06 15:11:54 +0200 |
| commit | c12f77caefbb9abf4678996c2c0395483c81d93f (patch) | |
| tree | 46f5db253ef4d7ba9eb951cd0f4539e367fc5f08 /asciifarm/client/display/info.py | |
| parent | 3ed17230c18053efc1835a0030b8d280be53c31e (diff) | |
widget implementations now inherit from superclass
Diffstat (limited to 'asciifarm/client/display/info.py')
| -rw-r--r-- | asciifarm/client/display/info.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/asciifarm/client/display/info.py b/asciifarm/client/display/info.py index e049b83..599627c 100644 --- a/asciifarm/client/display/info.py +++ b/asciifarm/client/display/info.py @@ -1,21 +1,18 @@ +from .widimp import WidImp -class Info: +class Info(WidImp): def __init__(self): self.changed = False self.lines = [] - self.widget = None self.lastString = None - def setWidget(self, widget): - self.widget = widget - def showString(self, string): if string == self.lastString: return self.lines = string.split('\n') - self.widget.change() + self.change() self.lastString = string def update(self, win): |
