Tk Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: 2fb85d7e3c3206940921e3c281a6630cb7ea4c08
Ticket: cd399b24dbb91b47b0d080cbe8d9a74948c7cba3
ttk::spinbox command is invoked without stop
User & Date: badchicken 2017-03-27 13:54:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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.
    
  5. foundin changed to: "Tcl/Tk 8.6.4"
  6. is_private changed to: "0"
  7. login: "badchicken"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "d1daeb4ba521a25e9d5fdf05611fb6ee4777c118"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "badchicken"
  14. subsystem changed to: "widget"
  15. title changed to: "ttk::spinbox command is invoked without stop"
  16. type changed to: "Bug"