(Jun-30-2020, 07:57 AM)All_ex_Under Wrote:from future.moves import Tkinter as tk window = tk.tk() # to rename the title of the window window.title("GUI") # pack is used to show the object in the window label = tk.label(window, text = "Welcome to DataCamp's Tutorial on Tkinter!").pack()
Have you tried
from future.moves import tkinter as tk window = tk.Tk()as capitalization matters, I tried that with tkinter and works just fine (well it does load the library)
for example after you set tkinter you will get an error for your tk.tk() as it should be tk.TK() the same goes for label, it should be Label
so it should be
from future.moves import tkinter as tk window = tk.Tk() # to rename the title of the window window.title("GUI") # pack is used to show the object in the window label = tk.Label(window, text = "Welcome to DataCamp's Tutorial on Tkinter!").pack()