mirror of
https://github.com/ulbwazhine/MockupEngineer.git
synced 2024-12-01 21:23:43 +03:00
28 lines
803 B
Python
28 lines
803 B
Python
|
from dataclasses import dataclass
|
||
|
|
||
|
from MockupModule.templates import Template
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class Device(Template):
|
||
|
def __device_init__(self):
|
||
|
self.manufacturer = 'Apple'
|
||
|
self.name = 'iPad Pro 4 12.9"'
|
||
|
self.type = 'tablet'
|
||
|
self.year = 2020
|
||
|
self.resolution = '{width} x {height}'.format(width=2732, height=2048)
|
||
|
|
||
|
self.__template_path__ = 'ipadpro134'
|
||
|
self.__colors__ = {"Silver": 'silver',
|
||
|
"Space Gray": 'spacegray'}
|
||
|
|
||
|
self.__portrait_width__ = 2048
|
||
|
self.__portrait_height__ = 2732
|
||
|
self.__portrait_x__ = 200
|
||
|
self.__portrait_y__ = 200
|
||
|
|
||
|
self.__landscape_width__ = 2732
|
||
|
self.__landscape_height__ = 2048
|
||
|
self.__landscape_x__ = 200
|
||
|
self.__landscape_y__ = 200
|