Files
aare/python/aare/Frame.py
2024-03-07 03:09:43 +01:00

16 lines
515 B
Python

from typing import Any
class Frame:
"""
Frame class. uses proxy pattern to wrap around the pybinding class
the intention behind it is to only use one class for frames in python (not Frame_8, Frame_16, etc)
"""
def __init__(self, frameImpl):
self._frameImpl = frameImpl
def __getattribute__(self, __name: str) -> Any:
"""
Proxy pattern to call the methods of the frameImpl
"""
return getattr(object.__getattribute__(self, "_frameImpl"), __name)