tag:blogger.com,1999:blog-9266717.post8141868372013428488..comments2023-05-22T10:01:23.167-03:00Comments on Only Python: Profiling adventures and cython - setting the stageAndré Robergehttp://www.blogger.com/profile/08131391818998844540noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9266717.post-74591497709432390932020-02-29T17:30:43.319-04:002020-02-29T17:30:43.319-04:00Please note that this blog post is 10 years old .....Please note that this blog post is 10 years old ... so it should not be surprising that the code would not work exactly as written anymore.André Robergehttps://www.blogger.com/profile/08131391818998844540noreply@blogger.comtag:blogger.com,1999:blog-9266717.post-85752856891129077372020-02-29T17:28:12.696-04:002020-02-29T17:28:12.696-04:00didn't work as above; on my setup the buttons ...didn't work as above; on my setup the buttons are CaseSensitive, so you may try this:<br /><br /> self.parent.bind("<Button-1>", self.mouse_down)<br /> self.parent.bind("<Button1-Motion>", self.mouse_motion)<br /> self.parent.bind("<Button1-ButtonRelease>", self.mouse_up)<br /><br />PS. here on comments to display e.g. > or < characters you need to encode them...Code Presserhttps://www.blogger.com/profile/17219822464739953358noreply@blogger.comtag:blogger.com,1999:blog-9266717.post-53176445077041691282011-07-26T12:21:56.462-03:002011-07-26T12:21:56.462-03:00didn't work for me either but based on http://...didn't work for me either but based on http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm i was able to get it to work with <br /><br />self.parent.bind("", self.mouse_down)<br />self.parent.bind("", self.mouse_motion)<br />self.parent.bind("", self.mouse_up)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9266717.post-37772329173608551852011-07-04T09:22:48.629-03:002011-07-04T09:22:48.629-03:00Viewer did not function as the event types were wr...Viewer did not function as the event types were wrong. Finally I could get it kind of working with changing the events to<br /><br /> self.parent.bind("", self.mouse_down)<br /> self.parent.bind("", self.mouse_motion)<br /> self.parent.bind("", self.mouse_up)Tonyhttps://www.blogger.com/profile/15071443879753507967noreply@blogger.com