Overview
Artifact ID: | 2fb85d7e3c3206940921e3c281a6630cb7ea4c08 |
---|---|
Ticket: | cd399b24dbb91b47b0d080cbe8d9a74948c7cba3
ttk::spinbox command is invoked without stop |
User & Date: | badchicken 2017-03-27 13:54:44 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
I have an strange behavior that it invokes the command without stop. I write the next code in the wish8.6 console: <pre class='verbatim'> ttk::spinbox .sb -from 0 -to 10000 -command [list ::danitest] grid .sb proc ::danitest {} { puts "inside" tkwait variable ::danivar puts "outside" } </pre> Then, I do a single click on any arrow. The command is invoked and I can read the message "inside". Now, the process is waiting to the change of my variable danivar. In this momment, I write in the console the next code: <pre class='verbatim'> set ::danivar 1 </pre> and when I press return I see that the message "outside" is shown, and some milliseconds later, the event is recalled (and I can read again the message "inside"). This behaviour doesn't stops. I don't know if it is my fault or there is an error. I have the same behaviour if I use the command error instead of tkwait.
- foundin changed to: "Tcl/Tk 8.6.4"
- is_private changed to: "0"
- login: "badchicken"
- priority changed to: "5 Medium"
- private_contact changed to: "d1daeb4ba521a25e9d5fdf05611fb6ee4777c118"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "badchicken"
- subsystem changed to: "widget"
- title changed to: "ttk::spinbox command is invoked without stop"
- type changed to: "Bug"