Skip to content

Add types for tkinter.Canvas.canvasx and tkinter.Canvas.canvasy#15846

Merged
srittau merged 2 commits into
python:mainfrom
Akuli:canvasx
May 30, 2026
Merged

Add types for tkinter.Canvas.canvasx and tkinter.Canvas.canvasy#15846
srittau merged 2 commits into
python:mainfrom
Akuli:canvasx

Conversation

@Akuli
Copy link
Copy Markdown
Collaborator

@Akuli Akuli commented May 29, 2026

Example:

>>> import tkinter
>>> c = tkinter.Canvas()
>>> c.canvasx(5.1, gridspacing=3.03)
6.06
>>> c.canvasx('5m', gridspacing='1m')
18.91891891891892

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 209e855 into python:main May 30, 2026
74 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants