I have a problem with the Notebook widget with python 3.3.2
This is the code:
gui=Tk()
gui.title("Test")
gui.geometry()
n = ttk.Notebook(gui).grid()
f1 = ttk.Frame(n)
f2 = ttk.Frame(n)
n.add(f1, text='One')
n.add(f2, text='Two')
gui.resizable(width=TRUE, height=TRUE)
mainloop()
and this is the error:
Traceback (most recent call last):
File "C:\Users\SergiX\Desktop\SergiX44's ModTool con sorgente 3.3\SergiX44's ModTool 1.6.4.py", line 179, in <module>
n.add(f1, text='One')
AttributeError: 'NoneType' object has no attribute 'add'
I don't know the reason of the error
thanks