[New-bugs-announce] [issue42844] Turtle Module -- "onclick" arguments enchancement
Stephen
report at bugs.python.org
Wed Jan 6 12:00:12 EST 2021
New submission from Stephen <carlson.stephen13 at gmail.com>:
I have created an enhancement in the Turtle module. When a programmer wants to have an action performed after clicking on a Turtle object, the programmer is currently unable to supply any arguments into the method that is run when "on_clicked" which is extremely limiting, especially to beginners who are looking to modify multiple objects on the screen at one time, such as in a game. I have modified the implementation of the “on_clicked” method to be able to provide keyword arguments into the method through a dictionary that is later unpacked into the target method. Attached is an example of the benefits of this enhancement to the turtle module.
----------
components: Library (Lib)
files: on_click_arguments_example.py
messages: 384513
nosy: sc1341
priority: normal
severity: normal
status: open
title: Turtle Module -- "onclick" arguments enchancement
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file49723/on_click_arguments_example.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42844>
_______________________________________
More information about the New-bugs-announce
mailing list