2017-03-28 04:18:39 -07:00
|
|
|
from trezor.ui import Widget
|
2017-01-18 08:59:11 -08:00
|
|
|
|
2017-03-28 04:18:39 -07:00
|
|
|
|
|
|
|
class Container(Widget):
|
2017-01-18 08:59:11 -08:00
|
|
|
|
|
|
|
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):
|
2017-01-18 08:59:11 -08:00
|
|
|
for child in self.children:
|
2017-06-12 09:16:06 -07:00
|
|
|
result = child.touch(event, pos)
|
2017-01-18 08:59:11 -08:00
|
|
|
if result is not None:
|
|
|
|
return result
|