Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Anonymous Monk
on Dec 26, 2012 at 00:21 UTC ( [id://1010298]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1010298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found