I've found it in Tk::Widget. So it should work when invoked on your object. If not, please post an example.

Update: Minimal example:

use Tk; use strict; use warnings; my $mw = MainWindow->new; $mw->Label(-text => 'Hello, world!')->pack; $mw->Button( -text => 'Quit', -command => sub { exit }, )->pack; my (@bindtags) = $mw->bindtags; print "\$mw's bindtags:\n", join("\n", @bindtags), "\n"; print "\nCORRECTION: NOW THE bindDump():\n", $mw->bindDump(); # <-- U +PDATE2 MainLoop;
Output on STDOUT:
mw's bindtags: MainWindow . all CORRECTION: NOW THE bindDump(): ## Binding information for '.', MainWindow=HASH(0xf20e08) ## 1. Binding tag 'MainWindow' has no bindings. 2. Binding tag '.' has no bindings. 3. Binding tag 'all' has these bindings: <Key-F10> : Tk::Callback=SCALAR(0xf57d08) + 'FirstMenu' <Alt-Key> : Tk::Callback=ARRAY(0xf57c48) + 'TraverseToMenu' Tk::Ev=SCALAR(0xcb3258) + : 'K' <<LeftTab>> : Tk::Callback=SCALAR(0xf57ba0) + 'focusPrev' <Key-Tab> : Tk::Callback=SCALAR(0xf57bb8) + 'focusNext'

No use Tk::Widget; required. That is done automatically.

Update2: Thanks to beech for pointing out that the real call to bindDump() was missing.


In reply to Re: Tk::bindDump availability? by Perlbotics
in thread Tk::bindDump availability? by gsd4me

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.