can i use .config with Label in tkinter? i am getting error and i am not that exprienced so facing problem to solve it
i am getting this error
Exception in Tkinter callback
Traceback (most recent call last):
File “C:UsersCPanaconda3Libtkinter_init_.py”, line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File “C:UsersCPAppDataLocalTempipykernel_127362465764817.py”, line 32, in submit
result_label.config(text=f’Percentage of organic carbon: {percentage:.2f}%’)
^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘config’