MockupEngineer/MockupModule/templates/iphonese2020/__init__.py

30 lines
833 B
Python
Raw Normal View History

2021-12-29 19:52:41 +03:00
from dataclasses import dataclass
2022-01-22 09:17:42 +03:00
from MockupModule.templates import Template
2021-12-29 19:52:41 +03:00
@dataclass
class Device(Template):
2022-01-22 09:17:42 +03:00
def __device_init__(self):
2021-12-29 19:52:41 +03:00
self.manufacturer = 'Apple'
self.name = 'iPhone SE'
self.type = 'phone'
self.year = 2020
2022-01-22 09:17:42 +03:00
self.resolution = '{width} x {height}'.format(width=750, height=1334)
2021-12-29 19:52:41 +03:00
2022-01-22 09:17:42 +03:00
self.__template_path__ = 'iphonese2020'
self.__colors__ = {"Black": 'black',
"PRODUCT RED": 'red',
"White": 'white'}
2021-12-29 19:52:41 +03:00
2022-01-22 09:17:42 +03:00
self.__portrait_width__ = 750
self.__portrait_height__ = 1334
self.__portrait_x__ = 150
self.__portrait_y__ = 300
self.__landscape_width__ = 1334
self.__landscape_height__ = 750
self.__landscape_x__ = 300
self.__landscape_y__ = 150
2021-12-29 19:52:41 +03:00