(event)
| 254 | self.main_widget.bind('<B1-Leave>', b1_leave_handler) |
| 255 | |
| 256 | def b1_enter_handler(event): |
| 257 | # Cancel the scheduling of text_auto_scroll(), if it exists. |
| 258 | nonlocal auto_scrolling_after_id |
| 259 | if auto_scrolling_after_id is not None: |
| 260 | self.main_widget.after_cancel(auto_scrolling_after_id) |
| 261 | auto_scrolling_after_id = None |
| 262 | self.main_widget.bind('<B1-Enter>', b1_enter_handler) |
| 263 | |
| 264 |
nothing calls this directly
no test coverage detected