tkinter - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: tkinter (/thread-14087.html) Pages:
1
2
|
RE: tkinter - peer - Nov-15-2018 I installt python-tk and it works with python2 but not with python3. RE: tkinter - Larz60+ - Nov-15-2018 Note: spelling in python 2 it's Tkinter (capitalized) in python 3 it's tkinter (not capitalized) RE: tkinter - peer - Nov-15-2018 But python gave me this output: Traceback (most recent call last): File "/home/linuxgamer21/Schreibtisch/animationentest.py", line 2, in <module> import tkinter as tk ModuleNotFoundError: No module named 'tkinter' with this code: #!/usr/bin/python3 import tkinter as tk root = tk.Tk() thelabel = tk.Label(root, text="this is too easy") thelabel.pack() root.mainloop() RE: tkinter - Gribouillis - Nov-15-2018 In Ubuntu, you need to install python3-tk
RE: tkinter - peer - Nov-15-2018 it works thankyou! |