in reply to reattaching Tk ballons

The Tk::Balloon doc says for the -balloonmsg option:
If you give it a scalar reference then it is dereferenced before being displayed. Useful if the postcommand is used to change the message.
It seems that it isn't necessary to utilize -postcommand for your problem, using a reference for -balloonmsg should suffice.

Replies are listed 'Best First'.
Re^2: reattaching Tk ballons
by Anonymous Monk on Jun 18, 2004 at 19:25 UTC
    Aha! Right you are. I must learn to read the documentation more carefully... but I'm still using -postcommand as a way to decide when to update the scalar that is being referenced by -balloonmsg. Thanks!