Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: perl Tk::Scrolled : how do I hijack existing subwidget bindings?

by zentara (Archbishop)
on Apr 04, 2005 at 13:10 UTC ( [id://444654]=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl Tk::Scrolled : how do I hijack existing subwidget bindings?
in thread perl Tk::Scrolled : how do I hijack existing subwidget bindings?

and I went on to search and experiment some more. Couple of hours later...

Thats the way to do it, you have to put in those "hours of experimenting" to get results. It's like exercising, the muscles only grow if you do the workouts. :-)

I'll look at this later, and see if I see something. I would suggest that you post this to the newsgroup comp.lang.perl.tk , because Jack D. (who maintains the text widget) is a regular there, amoung others who have deep insight into overriding things. Generally, in your type of problem, you would create your own "special text widget", say called "MyText.pm", or a package in your script. It is a common procedure called Derived, read "perldoc Tk::Derived". An easy example is Making a derived Tk::Text object. So look at the source code for Text.pm and see which sub you want to change.


I'm not really a human, but I play one on earth. flash japh
  • Comment on Re^3: perl Tk::Scrolled : how do I hijack existing subwidget bindings?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://444654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-05-29 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found