mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-12 17:48:09 +00:00
20 lines
475 B
Python
20 lines
475 B
Python
from trezor import ui
|
|
|
|
if False:
|
|
from typing import List
|
|
|
|
|
|
class Container(ui.Component):
|
|
def __init__(self, *children: ui.Component):
|
|
super().__init__()
|
|
self.children = children
|
|
|
|
def dispatch(self, event: int, x: int, y: int) -> None:
|
|
for child in self.children:
|
|
child.dispatch(event, x, y)
|
|
|
|
if __debug__:
|
|
|
|
def read_content(self) -> List[str]:
|
|
return sum((c.read_content() for c in self.children), [])
|