Message268228
+1! This would be helpful for exploration and quite possibly for tests. Earlier this year, I bound <Button-1> to a custom function(event) printing event.x, event.y so I could discover how the line thickness of Canvas rectangles was distributed inside and outside the nominal dimensions. (Using a magnifier to click on exact pixels, I discovered the rule.) Being able to bind to print instead have been nice.
There is no patch uploaded. In the absence of seeing what you did... Event.type should be decoded. The hex address should be replaced by at least the widget class, if not its path name (which would make readable names imperative!) The Event representation should be customized to the event type.
For me, there is no tkinter.EventType. The <<Selection>> binding worked to prove the idea. |
|
Date |
User |
Action |
Args |
2016-06-11 16:34:40 | terry.reedy | set | recipients:
+ terry.reedy, serhiy.storchaka |
2016-06-11 16:34:40 | terry.reedy | set | messageid: <1465662880.67.0.219337729907.issue27294@psf.upfronthosting.co.za> |
2016-06-11 16:34:40 | terry.reedy | link | issue27294 messages |
2016-06-11 16:34:39 | terry.reedy | create | |
|