This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author GeeTransit
Recipients GeeTransit, terry.reedy
Date 2019-08-21.16:44:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566405889.17.0.230037476707.issue37902@roundup.psfhosted.org>
In-reply-to
Content
I looked at the code for scrolling and moved it over to the ScrolledCanvas and TreeNode (because it uses a Label that sits on the canvas, meaning we have to rebind it here).

I haven't figured out how to add the scroll-by-pressing-down-and-moving way but I'll look further into it.

About the factoring out part, the ScrolledCanvas and TreeNode are both used by the two browsers, meaning that no code has to be added to them. In the future, a factory function could be made that when called with a canvas, it returns an event callback function that can be bound to the canvas. When called, it scrolls depending on the event type and other info.
History
Date User Action Args
2019-08-21 16:44:49GeeTransitsetrecipients: + GeeTransit, terry.reedy
2019-08-21 16:44:49GeeTransitsetmessageid: <1566405889.17.0.230037476707.issue37902@roundup.psfhosted.org>
2019-08-21 16:44:49GeeTransitlinkissue37902 messages
2019-08-21 16:44:49GeeTransitcreate