Esempio n. 1
0
    def __init__(self, user_simulation=None, crop_taskbar=True):
        if not user_simulation:
            from murphy.user_simulation.local.local_user import User
            self._user_automation = User()
        else:
            self._user_automation = user_simulation

        path = os.path.dirname(__file__) + '/img'
        radio_images = [
            Image2(file_name=path + '/radio1.bmp', color_mask=0xed1c2400),
            Image2(file_name=path + '/radio2.bmp', color_mask=0xed1c2400)
        ]
        self._radio = UIElement(radio_images)

        check_images = [
            Image2(file_name=path + '/check1.bmp', color_mask=0xed1c2400),
            Image2(file_name=path + '/check2.bmp', color_mask=0xed1c2400)
        ]
        self._checkboxes = UIElement(check_images)
        self._crop_taskbar = crop_taskbar

        self._internal_counter = 0