I am curious to know if there is any real difference other than preference between using .config
vs []
on a widget to update parameters.
For example if I wish to change the text of a label most would do this:
label.config(text='new')
However one could also do:
label['text'] = 'new'
My assumption is that all of the widgets parameters are stored in a dictionary and that is why this works. Is there any performance difference or is there any reason to use one method over the other?
There does not seam to be any clear documentation I can find on the 2nd option.