Jump to content

Help

ALBas126
Go to solution Solved by Sauron,
4 minutes ago, ALBas126 said:

this is the video I used 

 

Why did you call tkinter() (which does not exist) instead of Tk() as seen in the tutorial?

image.png.a209babab0d51af79dcb8202cc73718a.png

I was trying to get back into coding and I was watching and following a long a yt tutorial what is the problem with this code?

 

from tkinter import *

root = tkinter()

# Creating a label widget
myLabel = label(root, text="Hello World!")
# Shoving it to the top screen
myLabel.pack()


root.mainloop()

 

the error I got said: 

Traceback (most recent call last):
  File "gui toturial.py", line 3, in <module>
    root = tkinter()
NameError: name 'tkinter' is not defined

***Repl Closed***
 

Link to comment
Share on other sites

Link to post
Share on other sites

what tutorial? also use code tags

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, Sauron said:

what tutorial? also use code tags

this is the video I used 

 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, ALBas126 said:

this is the video I used 

 

Why did you call tkinter() (which does not exist) instead of Tk() as seen in the tutorial?

image.png.a209babab0d51af79dcb8202cc73718a.png

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Sauron said:

Why did you call tkinter() (which does not exist) instead of Tk() as seen in the tutorial?

image.png.a209babab0d51af79dcb8202cc73718a.png

oh because that did not work either so I thought that may of fixed it it did not

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Sauron said:

Why did you call tkinter() (which does not exist) instead of Tk() as seen in the tutorial?

image.png.a209babab0d51af79dcb8202cc73718a.png

omg I am officially the stupidest man on earth thx so much for the help

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×