Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Gtk2-Perl: How to catch shift-clicking of a button?

by Anonymous Monk
on Nov 13, 2012 at 09:45 UTC ( #1003577=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     #!/usr/bin/perl -w
    use strict;
    use diagnostics;
    ...
      bless(do{\(my $o = 257)}, "Gtk2::Gdk::ModifierType"),
    ]
    [["shift-mask", "button1-mask"]]
    
  2. or download this
    my $state = Gtk2->get_current_event->get_state ;
    exit warn "How dare you shift" if  $state * "shift-mask";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003577]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2016-12-11 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.