Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106085
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail |
|---|---|
| From | Grant Edwards <invalid@invalid.invalid> |
| Newsgroups | comp.lang.python |
| Subject | pygtk button right/middle click |
| Date | Wed, 30 Mar 2016 15:36:12 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 26 |
| Message-ID | <ndgrpc$6kh$1@reader1.panix.com> (permalink) |
| NNTP-Posting-Host | 67-130-15-94.dia.static.qwest.net |
| X-Trace | reader1.panix.com 1459352172 6801 67.130.15.94 (30 Mar 2016 15:36:12 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Wed, 30 Mar 2016 15:36:12 +0000 (UTC) |
| User-Agent | slrn/1.0.2 (Linux) |
| Xref | csiph.com comp.lang.python:106085 |
Show key headers only | View raw
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?
--
Grant Edwards grant.b.edwards Yow! CHUBBY CHECKER just
at had a CHICKEN SANDWICH in
gmail.com downtown DULUTH!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
pygtk button right/middle click Grant Edwards <invalid@invalid.invalid> - 2016-03-30 15:36 +0000
Re: pygtk button right/middle click Chris Angelico <rosuav@gmail.com> - 2016-03-31 02:58 +1100
Re: pygtk button right/middle click Grant Edwards <invalid@invalid.invalid> - 2016-03-30 17:44 +0000
Re: pygtk button right/middle click Wildman <best_lay@yahoo.com> - 2016-03-30 14:16 -0500
Re: pygtk button right/middle click Grant Edwards <invalid@invalid.invalid> - 2016-03-30 19:21 +0000
Re: pygtk button right/middle click Grant Edwards <invalid@invalid.invalid> - 2016-03-30 19:23 +0000
Re: pygtk button right/middle click Wildman <best_lay@yahoo.com> - 2016-03-30 16:37 -0500
csiph-web