pygtk button right/middle click
Wildman
best_lay at yahoo.com
Wed Mar 30 15:16:34 EDT 2016
On Wed, 30 Mar 2016 15:36:12 +0000, Grant Edwards wrote:
> I'm trying to figure out how to get a pygtk button respond to
> somehting other than just a simple "left click". With a standard
> 3-button mouse, X11 provides at least 9 different "click" types, but
> the pygtk button only seems to support one of them.
>
> [Yes, I know there are left-handled mouse configurations -- by "left"
> click I'm using the common term to mean the primary mouse button.]
>
> After googling for some time, I haven't found any good answers. Some
> people just say things like "use the button_release_event signal of
> the button widget".
>
> But, that signal is depricated (and AFAICT still doesn't make the
> button actually respond to the left/middle click by "depressing" the
> way it should).
>
> Other answers are things like "you'll have to write you own button
> class in C, not C++".
>
> Is the gtk button widget really incapable of handling left or middle
> mouse buttons or shift/ctrl/alt modifiers?
This might help...
http://faq.pygtk.org/index.py?req=show&file=faq05.004.htp
--
<Wildman> GNU/Linux user #557453
May the Source be with you.
More information about the Python-list
mailing list