def _refresh_keyboard_layout(self): layout_id = KeyboardLayout.current_layout_id() if layout_id != self.keyboard_layout.layout_id: self.keyboard_layout = KeyboardLayout(layout_id)
def __init__(self): self.keyboard_layout = KeyboardLayout()
def __init__(self): self.keyboard_layout = KeyboardLayout() self._time_between_key_presses = 0