Files
2024-09-12 15:40:17 +08:00

20 lines
414 B
Python

# SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
#
# SPDX-License-Identifier: MIT
_attrs = {
"Base": "base",
"Button": "button",
"Image": "image",
"Label": "label",
}
def __getattr__(attr):
mod = _attrs.get(attr, None)
if mod is None:
raise AttributeError(attr)
value = getattr(__import__(mod, None, None, True, 1), attr)
globals()[attr] = value
return value