mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-12-30 17:01:26 +01:00
16 lines
515 B
Python
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)
|
|
|