Python 3.11.0 installation and Tkinter does not work

Mats Wichmann mats at wichmann.us
Tue Nov 22 10:22:08 EST 2022


On 11/21/22 14:41, Thomas Passin wrote:
> On 11/21/2022 1:24 PM, Stefan Ram wrote:
>> darkstone at o2online.de writes:
>>>>>> import _tkinter
>>
>>    I don't know why you get this error message. Here, I do not
>>    get an error message from that line. However, the normal way
>>    to use tkinter, as far as I know, is without the underscore!
> 
> You can import both tkinter and _tkinter, though I'm not sure why you 
> would do the latter for any normal programming.

No, but it's often the advice given when things are not working - see if 
the underlying tkinter module can be imported, to verify it's actually 
findable, so not surprised to see someone trying it.



More information about the Python-list mailing list