1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-02 04:42:33 +00:00
trezor-firmware/core/src/trezor/ui/container.py
2019-07-09 12:51:48 +02:00

11 lines
270 B
Python

from trezor import ui
class Container(ui.Control):
def __init__(self, *children: ui.Control):
self.children = children
def dispatch(self, event: int, x: int, y: int) -> None:
for child in self.children:
child.dispatch(event, x, y)