Skip to content

winfo_pathname gives an exception on 64-bit Python on Microsoft Windows #113877

@RogerMarsh

Description

@RogerMarsh

Bug report

Bug description:

import sys
import tkinter
print(sys.version)
button = tkinter.Button()
print(button)
i = button.winfo_id()
print(i)
p = button.winfo_pathname(i)
print(p)

Code above copy-typed from attachment. It works on 32-bit Python but gives exception on 64-bit Python on Windows.

Other means 64-bit BSDs which are fine, and Msys2 on Windows where 32-bit is ok but 64-bit gives exception.

winfo_id.txt

CPython versions tested on:

3.10, 3.12

Operating systems tested on:

Windows, Other

Linked PRs

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixes3.13bugs and security fixestopic-tkintertype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions