Skip to content
Tcl Source Code History Of Ticket 3565164fffffffff
Login

History Of Ticket 3565164fffffffff

Artifacts Associated With Ticket 3565164fffffffff

  1. Ticket change [97dd723502] (rid 110509) by sunblackshine on 2012-09-06 02:41:07:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I write a xml layout feature for my work, recently. And I want bind a radiobutton or checkbutton click event on a method, but do not affect "command" configure option.
      so I use the Events and Bindings, I write it like this widget.bind("<ButtonRelease-1>", lambda event: self.enable_toggle(data))
      and 
          def enable_toggle(self, widget):
             print widget_value_map[widget].get() # this will get the widget's variable and get it value.
      
      on linux platform, the <ButtonRelease-1> event will be called after variable change, so I get the correct value in enable_toggle
      but on windows platform, the event will be called before variable change, so I get the wrong value.
      
      version:(python version  2.7.3)
      Linux:
      >>> Tkinter.TkVersion
      8.5
      >>> Tkinter.TclVersion
      8.5
      Windows:
      >>> Tkinter.TkVersion
      8.5
      >>> Tkinter.TclVersion
      8.5
      
      
      I wrte a simple code(attachment) to show this bug. I want the code have same result on linux and windows, but it doesnt.
      
      BTW: Is there a way to bind multiple method to an button click event? If a better one please tell me. Thank you. mailto: [email protected]
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "sunblackshine"
    10. subsystem initialized to: "None"
    11. title initialized to:
      bind<ButtonRelease-1> doesnt have same behavior on windows
      
    12. type initialized to: "Bug"
  2. Add attachment "t-toggle.py" [a9ba7978c4] (rid 99197) by sunblackshine on 2012-09-06 09:41:08.

  3. Ticket change [a1274ba710] (rid 109669) by sunblackshine on 2012-09-06 09:41:08:

    1. icomment:
      
      
      File Added - 452666: t-toggle.py
      
      
      
    2. login: "sunblackshine"
    3. mimetype: "text/plain"
    4. username: "sunblackshine"
  4. Ticket change [8cf0b55853] (rid 127824) by dgp on 2012-09-06 19:00:05:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2012-09-06T12:00:05"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      This report is about Tk.  It should be in the
      Tracker for the tktoolkit project at SourceForge.
      
      Took care of it for you this time.
      http://sf.net/tracker/?func=detail&aid=3565268&group_id=12997&atid=112997
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "dgp"