[issue21933] Allow the user to change font sizes with the text pane of turtledemo

Serhiy Storchaka report at bugs.python.org
Mon Jul 28 11:00:22 CEST 2014


Serhiy Storchaka added the comment:

On X11 <Button-4> and <Button-5> events are generated on mouse wheel roll. So you should add

        widget.bind('<Control-Button-4>', self._increaseFont)
        widget.bind('<Control-Button-5>', self._decreaseFont)

But mouse wheel events still are sent to widget and text is scrolled together with font size changing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21933>
_______________________________________


More information about the Python-bugs-list mailing list