I want to detect if ctrl is held down when the user clicks a button. The 'clicked' signal doesn't seem to pass enough information to the callback to work this out.
相关问题
- Some questions about switches in python
- Overriding virtual methods in PyGObject
- how to (programmatically) scroll to a specific lin
- How do I really make a GTK+ 3 GtkLayout transparen
- GtkD with D lang on Fedora
相关文章
- Converting PIL Image to GTK Pixbuf
- Can you get the parent GTK window from a widget?
- How to set multiple items into a GtkSelection for
- Stacking widgets in Gtk+
- How to access the theming Fonts and Colors on GTK/
- When are GTK signals emitted
- How can I link a set of toggle buttons like radio
- Example code for a minimal paint program (MS Paint
If you can connect to either
button-press-event
orbutton-release-event
instead ofclicked
, theevent
passed to the callback can be used to get the modifier state (usingget_state
) and check if control key is pressed. For ex.Hope this helps!