2022-07-30 21:03:15 +00:00
|
|
|
from . import Abstract, abstract_property
|
|
|
|
|
|
|
|
|
|
|
|
class Window(Abstract):
|
2022-07-30 23:13:00 +00:00
|
|
|
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
|
2022-07-30 23:13:00 +00:00
|
|
|
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
|
2022-07-30 23:13:00 +00:00
|
|
|
|
|
|
|
@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
|