Re: [pygtk] Receive events without focus

2013-06-04 Thread Thomas Guettler
Am 04.06.2013 00:14, schrieb Tim Evans: ... On Windows there is the RegisterHotKey function. This is not available via GTK, so you'd have to use the win32 APIs directly. The hard part will be getting the WM_HOTKEY message. I think you'll need to create a window using win32all so you can handle

Re: [pygtk] Receive events without focus

2013-06-03 Thread Tim Evans
On 2013-05-31 20:44, Thomas Guettler wrote: Hi, I write a native GUI with gtk, which needs to receive keyboard events although the window does not have the focus. The gtk window should be minified and run in background. If the user types a shortcut, the window should get on the foreground and g

Re: [pygtk] Receive events without focus

2013-05-31 Thread Robert Schroll
On 05/31/2013 04:44 AM, Thomas Guettler wrote: I write a native GUI with gtk, which needs to receive keyboard events although the window does not have the focus. You might want to take a look at programs that show keypresses for use in screencasts and demonstrations, since these have to notice

[pygtk] Receive events without focus

2013-05-31 Thread Thomas Guettler
Hi, I write a native GUI with gtk, which needs to receive keyboard events although the window does not have the focus. The gtk window should be minified and run in background. If the user types a shortcut, the window should get on the foreground and get the focus. Up to now the shortcut does