Skip to content

Commit

Permalink
basewidget: Introduce ChoiceWidget abstract base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Jan 14, 2018
1 parent d083cfe commit ce406c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions picotui/basewidget.py
Expand Up @@ -80,6 +80,13 @@ def loop(self):
return res


class ChoiceWidget(Widget):

def __init__(self, choice):
super().__init__()
self.choice = choice


# Widget with few internal selectable items
class ItemSelWidget(Widget):

Expand Down

0 comments on commit ce406c1

Please sign in to comment.