Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; use Tk::Balloon; use Tk::Canvas; $mw = MainWindow->new; $c=$mw ->Scrolled("Canvas", -cursor => "crosshair")->pack( -side=> "left", -fill => 'both', -expand =>1); $text = $c->createText(50,50, -fill=>'blue', -text=>"test"); #$button = $mw->createText(-text => "Exit", -command =>sub {exit})->pa +ck; $msgarea =$c->Label(-borderwidth => 2, -relief => 'groove') ->pack(-side => 'bottom', fill => 'x'); $balloon = $c->Balloon(-statusbar =>$msgarea); $balloon->attach($text, -balloonmsg => "hi", -statusmsg => "hi"); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Attaching a balloon message to text on the canvas
by zentara (Cardinal) on Sep 25, 2003 at 18:51 UTC | |
by bblustein (Beadle) on Sep 25, 2003 at 19:41 UTC | |
by Anonymous Monk on Sep 25, 2003 at 20:49 UTC | |
|
Re: Attaching a balloon message to text on the canvas
by zentara (Cardinal) on Sep 28, 2003 at 11:00 UTC |