detect ctrl+c in key_press_event handler
- From: Yann Leboulanger <asterix lagaule org>
- To: gtk-list gnome org
- Subject: detect ctrl+c in key_press_event handler
- Date: Fri, 29 Jan 2010 22:23:29 +0100
Hi all,
I'd like to detect a ctrl+C in a key_press_event handler. I wrote (in
pygtk):
keyc, mod = gtk.accelerator_parse('<Control>c')
if event.state & mod and event.keyval == keyc:
blabla
But that doesn't work on non-latin (russian) keyboard.
On those keyboard, keyc is 0
What's the correct way to detect that?
Thanks for your help
--
Yann Leboulanger
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]