def setStateNormalDisabled(active, widget):
 if active:
  widget.config(state=settings.Tkinter.NORMAL)
 else:
  widget.config(state=settings.Tkinter.DISABLED)

def setStateNormalDisabled ( active , widget ) : if active : widget . config ( state = settings . Tkinter . NORMAL ) else : widget . config ( state = settings . Tkinter . DISABLED )
set the state of the widget to normal if active and disabled if inactive .