Hi monks!
I've still got a problem. I was looking for a way to apply an explanatory comment to an entry or a label widget when the mouse is "hover" it. Zentara told me that in Tk that's named Balloon. It's part of the Tk's Tix extension. I found how to apply it in tk, but the GUI I'm greating uses Tkx, and I really can't make the translation from Tk to Tkx.
I can't understand why. I've tried every combination: i've required the package Balloon, etc, but it always gives me an error. Balloon is not recognised. So I would like to know if there's another rule to translate on Tkx the tk's extentions or if tkx doesn't support Ballons, or this widget got another name or what else.

Just in case, Tk's code is the following :

use Tk; use Tk::Balloon; $mw = MainWindow->new(-title => "Simple Balloon example"); $button = $mw->Button(-text => "Exit", -command => sub { exit })->pack +; $msgarea = $mw->Label(-borderwidth => 2, -relief => 'groove') ->pack(-side => 'bottom', -fill => 'x'); $balloon = $mw->Balloon(-statusbar => $msgarea); $balloon->attach($button, -balloonmsg => "Exit the App", -statusmsg => "Press the Button to exit the application"); $balloon->attach($msgarea, -msg => 'Displays the help text for a widge +t'); MainLoop;

Thanks for helping me!


In reply to [Tkx] Tk's Balloon translation by sebapabst

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.