Hello, when I try to run a python code such as:from Tkinter import *
I tried the following:from tkinter import *
It worked, so maybe tkinter is already installed?
Thank youJoeOn Monday, September 14, 2020 at 6:38:45 PM UTC-7 306 kern wrote:Here is what I get when I try to import tkinterWhat am I doing wrong?Thank you,JoeOn Monday, September 14, 2020 at 1:35:42 AM UTC-7 andre....@gmail.com wrote:
On Sunday, 13 September 2020 22:32:02 UTC-3, 306 kern wrote:Hello, when I try to run a python code such as:from Tkinter import *You are likely following a tutorial written for Python 2, an obsolete version of Python.In Python 3, the module name is tkinter (lowercase t).André RobergeI get the error:Traceback (most recent call last):
File "F:\myPython\frame7.py", line 2, in <module>
from Tkinter import *
ModuleNotFoundError: No module named 'Tkinter'Last, when I try to add the package Thonny can't find it.Can anyone help me?Thank youJoe
--
You received this message because you are subscribed to a topic in the Google Groups "thonny" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/thonny/Y-eVgHAxR8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to thonny+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thonny/717c4f55-9bdd-47f7-9d9a-f8887b8d1b46n%40googlegroups.com.