You are not logged in.

#1 2005-11-14 22:06:30

High|ander
Member
From: Skövde, Sweden
Registered: 2005-10-28
Posts: 188
Website

Keybindings i GTK

Does any of you have any good tutorial/links on how to write keybindings in GTK?

I have searched but not find any good

Thanks!


When death smiles at you, all you can do is smile back!
Blog

Offline

#2 2005-12-09 02:31:39

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Keybindings i GTK

i'm a little late to the party but i try to answer anyway.

i don't know any tutorials but for app wide hotkeys i use gtk.Action(). actions got methods for making *items which is very handy.

some widgets has signals with which you can catch keypresses with connect(). don't forget to return True if you don't want the widget to recieve the key


arch + gentoo + initng + python = enlisy

Offline

Board footer

Powered by FluxBB