my $top = new MainWindow();
my $tree = $top->ScrlTree();
$tree->bind(ref($tree), '<ButtonPress>', sub { die });
$top->bind(ref($tree), '<ButtonPress>', sub { die });
# Populate Tree...
MainLoop
For some reason this doesn't seem to work. It should die when I click the mouse on the tree, but it doesn't do anything at all. What is wrong? In reply to Binding events in Tk by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |