trezor-core/src/trezor/ui/container.py

18 lines
391 B
Python
Raw Normal View History

2017-03-28 04:18:39 -07:00
from trezor.ui import Widget
2017-03-28 04:18:39 -07:00
class Container(Widget):
def __init__(self, *children):
self.children = children
def render(self):
for child in self.children:
child.render()
2017-06-12 09:16:06 -07:00
def touch(self, event, pos):
for child in self.children:
2017-06-12 09:16:06 -07:00
result = child.touch(event, pos)
if result is not None:
return result