def test_unicode_to_keyval_other(): assert gdk.unicode_to_keyval(0x30ab) == 0x04b6 assert gdk.unicode_to_keyval(0x0652) == 0x05f2
def test_unicode_to_keyval_for_latin1(): for unicode in latin1range: assert gdk.unicode_to_keyval(unicode) == unicode
def _send_unicode_atspi(unistr): for ch in unistr: keyval = gdk.unicode_to_keyval(ord(ch)) pyatspi.Registry.generateKeyboardEvent(keyval, None, pyatspi.KEY_SYM)
def char2entries(self, char): keysym = gdk.unicode_to_keyval(ord(char)) # @UndefinedVariable if keysym: return self.keysym2deadEntries(keysym) return ()