This looks like you were running into an error, so you tried to import it a bunch of different ways. Eventually you figured out what the error was but never cleaned up the imports.
Oh yeah it was. Well also the constant changes of tutorial I was following for the next section which all imported it differently couldn't have helped.
Three shall be the number of ttks imported from tkinter, and the number of ttks shalt be three. Two thou shalt not import, neither import by four except thereby you proceed to import tkinter and reference tkinter.ttk. Five is right out.
254
u/unshifted Apr 20 '23
This looks like you were running into an error, so you tried to import it a bunch of different ways. Eventually you figured out what the error was but never cleaned up the imports.
126
u/sphericalduck Apr 20 '23
You forgot import tkinter as tk
17
u/Darknety Apr 20 '23
I like that ttk and pickle are unused :D
3
u/iamafraazhussain Apr 20 '23
Just to make sure, did you import tkinter?
2
u/0xCurtis Apr 21 '23
Also not using pickle but import it "just in case"
97
u/daterkerjabs Apr 20 '23
from * import *118
u/-MazeMaker- Apr 20 '23
No, four tkinters. Only one time.
13
u/zabojeb Apr 20 '23
Always did that when copied code and had “name “tkinter” undefined”, bcs i imported * from tkinter
11
u/LuigiSauce Apr 20 '23
If it makes you feel any better I think python makes all of them point to the same objects in memory
5
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Apr 20 '23
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
4
u/liseklucian Apr 20 '23
Ngl but I think that u need tkinter… I’m not sure tho
3
u/Droploris Apr 20 '23
import javascript3
u/jarfil Apr 20 '23 edited Dec 02 '23
CENSORED
3
u/kireina_kaiju Apr 20 '23
Three shall be the number of ttks imported from tkinter, and the number of ttks shalt be three. Two thou shalt not import, neither import by four except thereby you proceed to import tkinter and reference tkinter.ttk. Five is right out.
2
u/kgro Apr 20 '23
You can never be sure
2
u/brother_Yoghurt Apr 20 '23
Well.. i guess you were hoping to import some hidden library that requires a spell.
2
u/robottron45 Apr 20 '23
I have definitely seen worse things. Someone just did "import *;" or "import *.*;" in Java.
2
u/ckinz16 Apr 20 '23
import pickle
2
u/No-Ranger-3658 Apr 24 '23
Try to import more pickles
1
u/therealarya08 Apr 20 '23
Ide or code editor Didn't spot this ?
1
u/[deleted] Apr 20 '23
Wild card imports 💀
1
u/Kamui_Kun Apr 20 '23
Pickle is unused... smh, same
1
u/sikoexo1 Apr 26 '23
That looks like somthing i whlod do
1
u/MrMeme246 Apr 26 '23
I would like 2 tkinters
and then
2 more tkinters
1
u/Optical_enigma Apr 28 '23
Smoking and coding does that