native-ui/native_ui/abstract/window.py

32 lines
761 B
Python
Raw Normal View History

2022-07-30 21:03:15 +00:00
from . import Abstract, abstract_property
class Window(Abstract):
def __init__(self,
child: Abstract = None,
title: str = None,
width: int = None,
height: int = None,
platform: str = None):
2022-07-30 21:03:15 +00:00
super().__init__(platform=platform)
self._child = child
self._title = title
self._width = width
self._height = height
2022-07-30 21:03:15 +00:00
@abstract_property
def child(self, value):
self._child = value
@abstract_property
def title(self, value):
self._title = value
@abstract_property
def width(self, value):
self._width = value
@abstract_property
def height(self, value):
self._height = value