def __init__(self, vbox_mode): if vbox_mode: super().__init__() self.mouse = pymouse.PyMouse() self.vbox_mode = vbox_mode self.old_x = int(np.round(np.random.uniform(0, 500, 1))) self.old_y = int(np.round(np.random.uniform(0, 500, 1)))
def __init__(self, vbox_mode): self.logger = logging.getLogger('mouse') self.logger.setLevel(logging.DEBUG) if vbox_mode: super().__init__() self.mouse = pymouse.PyMouse() self.vbox_mode = vbox_mode self.old_x = int(np.round(np.random.uniform(0, 500, 1))) self.old_y = int(np.round(np.random.uniform(0, 500, 1)))