diff options
| author | troido <troido@protonmail.com> | 2018-09-09 14:52:59 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-09 14:52:59 +0200 |
| commit | 9fe119a95b4cd8ab23ea30db9a72645063da264f (patch) | |
| tree | 82c4ee67fb43cfb31a475ae598ac3abf902b307e /asciifarm/client/display/widget.py | |
| parent | 5bd11fd1914ea6744852b78047b207e521a304f1 (diff) | |
switchable menus are now somewhat usable and presentable
Diffstat (limited to 'asciifarm/client/display/widget.py')
| -rw-r--r-- | asciifarm/client/display/widget.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/asciifarm/client/display/widget.py b/asciifarm/client/display/widget.py index 59bed62..31bb093 100644 --- a/asciifarm/client/display/widget.py +++ b/asciifarm/client/display/widget.py @@ -1,17 +1,16 @@ - - class Widget: - def __init__(self, impl): + def __init__(self, impl, name=None): self.impl = impl - self.impl.setWidget(self) self.win = None self.screen = None self.changed = False self.hidden = False + self.name = name + self.impl.setWidget(self) def setWin(self, win, screen): self.win = win |
