sebapabst has asked for the wisdom of the Perl Monks concerning the following question:

Hi. I have a question about Tkx and his widgets.
I am creating a user interface for a conversion program. Users should insert some parameters in the first 3 windows opened, and then start the conversion. I was wondering if it's possible in Tkx to give to the label, or entry, widget an attribute similar to the attribute "title" of the HTML's links.

It means that when the user puts the cursor over the widget("hover") a little box explaining what to insert appears, and disappears when the cursor lefts the widget.This would easily help the user without havin to pass by a contextual menu or a guide file.
I've been looking on the net but I could not find a similar attribute.

Thanks for helping me!

Replies are listed 'Best First'.
Re: [Tkx] Widget's helpin box.
by zentara (Cardinal) on Feb 20, 2010 at 12:05 UTC
    Yes, you are looking for "balloons". I don't use Tkx, as it's special to windows, but google for "perl Tk balloon example" and you will get the idea of how it is done. The Tkx distribution must have a balloon example in it's release, maybe grep thru the example directory, or docs, for the word "balloon".

    P.S. I guess Tkx is cross-platform....I'll have to check it out.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku

      You're Great! That's exactly what I was looking for!!

      The problem now is that perldocs says that tk::Balloon is a Tix extension of Tk, but i don't know how to access it via Tkx. I will maybe ask this by a general question about extensions traduction on another post.

      Thanks a lot!

      Tkx is not special to windows
        Yes, I did get the Tkx module for linux off of cpan, but I must say it seems to be leaning toward supporting Windows more. First, the linux module, essentially says to learn Tcl, in order to use it. Whearas, from what I hear on Windows, the developers have a nice RAD interface to it, and probably nice docs for the functions. I have nothing against it, and hope it flourishes. However, I do see the future of GUI toolkits being based either on the Gtk2 or KDE libs. At the present, IMO, the gtk+ libs are the best choice to look at because it is fully open source, and gaining much support as Ubuntu style linux systems propagate out.

        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku