I am not sure whether this is possible, but here goes...
I am writing a Gtk3 application whilst learning the API and I am pushing
it by trying to achieve some edgy things!
My application, which is suitably privileged, can inject some arbitrary
text into the tty of another application. It does
Ok, so I have made a little progress on this, albeit in a one step
forward, two steps back kind-of way.
This code in my `keybinder_callback` half-works:
import Xlib
from Xlib import X
from Xlib.display import Display
from Xlib.ext.xtest import fake_input
display =
On 23/02/17 21:02, Colomban Wendling wrote:
>
> Sounds odd to do that manually. Do you know about mnemonic keys?
> Basically if you mark some part of the label to be the mnemonic letter,
> you'll be able to trigger that element with Alt+letter.
>
> Additionally, F10 already pops up the first
> Give this a try. It might be close to what you are after.
Thanks Eric. That works, however it is slightly different to what I need.
Firstly, my app is a dock containing nothing but a menu bar, so it has
no "window" as such.
Secondly, its key binding only works when its window has the focus.
On 23/02/17 15:23, Norbert de Jonge wrote:
> I would guess with:
> https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup-at-widget
Thanks, I have 3.22.5. I had tried `gtk-menu-popup-at-widget` but it
didn't work. I've tried lots of combinations to try and get it to work
without
I am trying to write a small test app using Python and Gtk+3
It's basically a bar across the top of the display that contains a menu
implemented as a Gtk.Window containing a Gtk.Bar containing a menu bar
populated using UIManager. Essentially this (where 'self' is an object
derived from