native-ui/native_ui/abstract/application.py

15 lines
392 B
Python
Raw Normal View History

2022-07-30 21:03:15 +00:00
from . import Abstract, abstract_property, Window
class Application(Abstract):
def __init__(self, window: Window = None, platform: str = None):
super().__init__(platform=platform)
self._window = window
@abstract_property
def window(self, value):
self._window = value
def run(self, *args, **kwargs):
self.native_call("run", *args, **kwargs)