예제 #1
0
def test_unicode_to_keyval_other():
    assert gdk.unicode_to_keyval(0x30ab) == 0x04b6
    assert gdk.unicode_to_keyval(0x0652) == 0x05f2
예제 #2
0
def test_unicode_to_keyval_for_latin1():
    for unicode in latin1range:
        assert gdk.unicode_to_keyval(unicode) == unicode
예제 #3
0
파일: fakekey.py 프로젝트: Ghost3/tegaki
 def _send_unicode_atspi(unistr):
     for ch in unistr:
         keyval = gdk.unicode_to_keyval(ord(ch))
         pyatspi.Registry.generateKeyboardEvent(keyval, None,
                                                 pyatspi.KEY_SYM)
예제 #4
0
 def _send_unicode_atspi(unistr):
     for ch in unistr:
         keyval = gdk.unicode_to_keyval(ord(ch))
         pyatspi.Registry.generateKeyboardEvent(keyval, None,
                                                pyatspi.KEY_SYM)
예제 #5
0
 def char2entries(self, char):
     keysym = gdk.unicode_to_keyval(ord(char))  # @UndefinedVariable
     if keysym:
         return self.keysym2deadEntries(keysym)
     
     return ()