Python Xlib.XK.string_to_keysym() Examples
The following are 15
code examples of Xlib.XK.string_to_keysym().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
Xlib.XK
, or try the search function
.
Example #1
Source File: main.py From inkscape-shortcut-manager with MIT License | 5 votes |
def string_to_keycode(self, key): keysym = XK.string_to_keysym(key) keycode = self.disp.keysym_to_keycode(keysym) return keycode
Example #2
Source File: pyxhook.py From Python-Programs with GNU General Public License v3.0 | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y # need the following because XK.keysym_to_string() only does printable chars # rather than being the correct inverse of XK.string_to_keysym()
Example #3
Source File: pyxhook.py From Python-Programs with GNU General Public License v3.0 | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) if asciinum < 256: return asciinum else: return 0
Example #4
Source File: pyxhook.py From clix with MIT License | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y return self.makemousehookevent(event) # need the following because XK.keysym_to_string() only does printable # chars rather than being the correct inverse of XK.string_to_keysym()
Example #5
Source File: pyxhook.py From clix with MIT License | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) return asciinum % 256
Example #6
Source File: pyxhook.py From botnet-lab with MIT License | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y # need the following because XK.keysym_to_string() only does printable chars # rather than being the correct inverse of XK.string_to_keysym()
Example #7
Source File: pyxhook.py From botnet-lab with MIT License | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) if asciinum < 256: return asciinum else: return 0
Example #8
Source File: pyxhook.py From py-keylogger with MIT License | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y # need the following because XK.keysym_to_string() only does printable chars # rather than being the correct inverse of XK.string_to_keysym()
Example #9
Source File: pyxhook.py From py-keylogger with MIT License | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) if asciinum < 256: return asciinum else: return 0
Example #10
Source File: pyxhook.py From Tickeys-linux with MIT License | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y return self.makemousehookevent(event) # need the following because XK.keysym_to_string() only does printable chars # rather than being the correct inverse of XK.string_to_keysym()
Example #11
Source File: pyxhook.py From Tickeys-linux with MIT License | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) if asciinum < 256: return asciinum else: return 0
Example #12
Source File: pyxhook.py From MouseTracks with GNU General Public License v3.0 | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y return self.makemousehookevent(event) # need the following because XK.keysym_to_string() only does printable # chars rather than being the correct inverse of XK.string_to_keysym()
Example #13
Source File: pyxhook.py From MouseTracks with GNU General Public License v3.0 | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) return asciinum % 256
Example #14
Source File: pyxhook.py From PythonP2PBotnet with MIT License | 5 votes |
def mousemoveevent(self, event): self.mouse_position_x = event.root_x self.mouse_position_y = event.root_y # need the following because XK.keysym_to_string() only does printable chars # rather than being the correct inverse of XK.string_to_keysym()
Example #15
Source File: pyxhook.py From PythonP2PBotnet with MIT License | 5 votes |
def asciivalue(self, keysym): asciinum = XK.string_to_keysym(self.lookup_keysym(keysym)) if asciinum < 256: return asciinum else: return 0