in reply to Tk::Scale, how to avoid callback when displayed?

That is a bug in Tk::Scale, -from/-to should be initialized before the -command is bound, you should report it :)

It is easy to avoid if you don't use -command but use -variable instead :)

  • Comment on Re: Tk::Scale, how to avoid callback when displayed? (its a bug)

Replies are listed 'Best First'.
Re^2: Tk::Scale, how to avoid callback when displayed? (its a bug)
by perltux (Monk) on Dec 26, 2012 at 01:16 UTC
    I think you are right that it's a bug or at the very least a design flaw. Problem is I need and use both -variable and -command (-variable to store the data and -command to trigger an action when the data changes).