I had a problem with tkinter
. After several hours of research I found my bug, but don't understand why it happened.
If I write this snippet:
self.progressbar = ttk.Progressbar(self.frame_content, orient=HORIZONTAL, length=200, mode='determinate').grid(row = 2, column = 2)
instead of this one:
self.progressbar = ttk.Progressbar(self.frame_content, orient=HORIZONTAL, length=200, mode='determinate')
self.progressbar.grid(row = 2, column = 2)
I get this error:
AttributeError: 'NoneType' object has no attribute 'start'
I understand the error, but I do not understand why it occurs. Could someone explain it to me please?