MockupEngineer/MockupModule/templates/ipad9/__init__.py

29 lines
831 B
Python
Raw Normal View History

2022-01-22 09:17:42 +03:00
from dataclasses import dataclass
from MockupModule.templates import Template
@dataclass
class Device(Template):
def __device_init__(self):
self.manufacturer = 'Apple'
self.name = 'iPad 9'
self.type = 'tablet'
self.year = 2021
self.resolution = '{width} x {height}'.format(width=2160, height=1620)
self.__template_path__ = 'ipad9'
self.__colors__ = {"Gold": 'gold',
"Silver": 'silver',
"Space Gray": 'spacegray'}
self.__portrait_width__ = 1620
self.__portrait_height__ = 2160
self.__portrait_x__ = 150
self.__portrait_y__ = 275
self.__landscape_width__ = 2160
self.__landscape_height__ = 1620
self.__landscape_x__ = 275
self.__landscape_y__ = 150