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.

Title: Turtle Module -- "onclick" arguments enchancement
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: sc1341
Priority: normal Keywords: patch

Created on 2021-01-06 17:00 by sc1341, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg384513 - (view) Author: (sc1341) * Date: 2021-01-06 17:00
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.
Date User Action Args
2022-04-11 14:59:39adminsetgithub: 87010
2022-01-31 16:32:05sc1341setpull_requests: - pull_request22972
2022-01-31 16:31:46sc1341setfiles: -
2021-01-06 17:12:03sc1341setkeywords: + patch
stage: patch review
pull_requests: + pull_request22972
2021-01-06 17:00:12sc1341create