diff options
| author | troido <troido@protonmail.com> | 2018-09-06 18:51:15 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-06 18:51:15 +0200 |
| commit | 5bd11fd1914ea6744852b78047b207e521a304f1 (patch) | |
| tree | d60947313eb14470be2e91b1f4975ab933059278 /asciifarm/client/display/widimp.py | |
| parent | 6c3ff03ab92c2d4493355fdbb31a7ababbba97f4 (diff) | |
made menus switchable so not all menus need to be in view all the time
Diffstat (limited to 'asciifarm/client/display/widimp.py')
| -rw-r--r-- | asciifarm/client/display/widimp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/asciifarm/client/display/widimp.py b/asciifarm/client/display/widimp.py index 1fa4240..145aa6b 100644 --- a/asciifarm/client/display/widimp.py +++ b/asciifarm/client/display/widimp.py @@ -4,11 +4,15 @@ class WidImp: """widget implementation""" + _widget = None + def setWidget(self, widget): self._widget = widget + self.change() def change(self): - self._widget.change() + if self._widget is not None: + self._widget.change() def update(self, win): pass |
