in reply to Attaching a balloon message to text on the canvas
#!/usr/bin/perl use Tk; use Tk::Balloon; my $mw = MainWindow->new; my $canvas = $mw->Canvas()->pack( -expand => 1, -fill => 'both', ); my $id = $canvas->createText( 5, 5, -text => 'hello', -anchor => 'nw', ); my %messages = (); $messages{$id} = "there"; my $balloon = $canvas->Balloon(); $balloon->attach( $canvas, -balloonposition => 'mouse', -msg => \%messages, ); MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Attaching a balloon message to text on the canvas
by bblustein (Beadle) on Sep 25, 2003 at 19:41 UTC | |
|
Re: Re: Attaching a balloon message to text on the canvas
by Anonymous Monk on Sep 25, 2003 at 20:49 UTC |