This question explains how to detect a ctrl+click in pygtk.
Does it also work on Lablgtk? Or is there a simpler way to do it?
This question explains how to detect a ctrl+click in pygtk.
Does it also work on Lablgtk? Or is there a simpler way to do it?
Copyright © 2021 Jogjafile Inc.
In lablgtk, there is a more direct solution, although it is not immediately obvious.
From a mouse click event
ev(of typeGdkEvent.Button.t), you can detect events such as ctrl+click/shift+click withGdkEvent.Button.stateandGdk.Convert.modifier), as in the following example:The type of the modifier list is
Gdk.Tags.modifier.