ich stoße in Tkinter egal wie ich es mache auf eine Fehler Meldung: "
Traceback (most recent call last):
File "main.py", line 11, in <module>
class tk:
File "main.py", line 16, in tk
Liste.insert(1, "maxmuster")
AttributeError: 'NoneType' object has no attribute 'insert'"
Dies kommt hoch wenn ich folgenden Code laufen lasse:
Code: Alles auswählen
from tkinter import *
class tk:
root = Tk()
Liste = Listbox(root).pack()
Liste.insert(1, "maxmuster")
tk.root.mainloop()