def get_device_resolution(self): """ reads and saves the device resolution. """ instance = Device() width, height = instance.get_screen_resolution() return list((width, height))