def key_press_icon_view(self, widget, event): '''Callback to handle key-press signal.''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True
def droplist_key_press(self, widget, event): '''Key press event.''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True
def key_press_confirm_dialog(self, widget, event): key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True else: return False
def key_press_combo(self, widget, event): '''Key press combo.''' if not self.droplist.get_visible(): key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True
def handle_key_press(self, widget, event): '''Handle key press.''' keyname = get_keyevent_name(event) if keyname != "": if keyname == "BackSpace": self.set_shortcut_key(None) elif keyname != "": self.set_shortcut_key(keyname)
def key_press_label(self, widget, event): '''Callback for `key-press-event` signal.''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return False
def handle_key_event(self, event): key_name = get_keyevent_name(event, False) if self.keymap.has_key(key_name): self.keymap[key_name]() self.emit("editing") elif key_name in map(str, range(0, 10)): self.insert_ip_number(key_name) self.emit("editing")
def key_press_icon_view(self, widget, event): ''' Internal callback for `key-press-event` signal. ''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True
def handle_key_event(self, event): key_name = get_keyevent_name(event, False) if self.keymap.has_key(key_name): self.keymap[key_name]() self.emit("editing") elif key_name in self.chars_a_z + self.chars_A_Z + map(str, range(0, 10)): self.insert_mac_number(key_name) self.emit("editing")
def droplist_key_press(self, widget, event): ''' Internal function for `key-press-event` signal. @param widget: Droplist widget. @param event: Key press event. ''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True
def __listview_key_press_event(self, widget, event): # if ctrl_mask_check(event): self.__ctrl_check = True if shift_mask_check(event): self.__shift_check = True # key_code = get_keyevent_name(event, False) #print "key_code:", key_code if self.__keymap_dict.has_key(key_code): self.__keymap_dict[key_code]() return True
def key_press_label(self, widget, event): ''' Internal callback for `key-press-event` signal. @param widget: Label widget. @param event: Key press event. ''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return False
def menu_grab_window_key_press(widget, event): if get_keyevent_name(event) == "Escape": menu_grab_window_focus_out()
def handle_key_event(self, event): '''Handle key event.''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]()
def key_press_button(self, widget, event): '''Key press button.''' key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]()
def m_key_press(self, widget, event): key_name = get_keyevent_name(event) if self.keymap.has_key(key_name): self.keymap[key_name]() return True