[Python-bugs-list] Tkinter missing button state symbols (PR#132)

aa8vb@yahoo.com aa8vb@yahoo.com
Thu, 18 Nov 1999 08:16:57 -0500 (EST)


Full_Name: Randall Hopper
Version: 1.5.2
OS: IRIX 6.5
Submission from: ethyl-f.rtpfddi.epa.gov (134.67.65.11)


I have:

  picture.bind( "<ButtonPress-1>"  , click_cb )
  picture.bind( "<ButtonRelease-1>", click_cb )

In click_cb(), event.state is 0 for ButtonPress and 256 for ButtonRelease.

Where are the Tkinter constants for these?  Or how should one distinguish
between a press and release in a callback?

(I want to avoid having a separate callback for each type of event.)