What you call item
is just an identifier (a float), which doesn't have a state
key or a configure
method. Also, the possible values for a tab's state in this context are normal
, disabled
and hidden
, not enabled
. Try this instead:
for i, item in enumerate(tabs):
notebook.tab(item, state='normal') # Does work