mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
bpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368)
Modify the wheel event handler so it can also be used for module, path, and stack browsers.
Patch by George Zhang.
(cherry picked from commit 2cd9025858
)
Co-authored-by: GeeTransit <geetransit@gmail.com>
This commit is contained in:
parent
6ad0a2c45f
commit
9c2654d1aa
7 changed files with 78 additions and 21 deletions
|
@ -35,6 +35,14 @@ class MultiCallTest(unittest.TestCase):
|
|||
mctext = self.mc(self.root)
|
||||
self.assertIsInstance(mctext._MultiCall__binders, list)
|
||||
|
||||
def test_yview(self):
|
||||
# Added for tree.wheel_event
|
||||
# (it depends on yview to not be overriden)
|
||||
mc = self.mc
|
||||
self.assertIs(mc.yview, Text.yview)
|
||||
mctext = self.mc(self.root)
|
||||
self.assertIs(mctext.yview.__func__, Text.yview)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(verbosity=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue