# GUI Callback function
Def checkCallback ignoredArgs (*) :
# only enable one checkbutton
If chVarUn. The get () : check3 configure (state='disabled')
The else: check3. Configure (state='normal')
If chVarEn. The get () : check2 configure (state='disabled')
The else: check2. Configure (state='normal')
# trace the state of the two checkbuttons
ChVarUn. Trace (' w ', lambda unused0, unused1, unused2: checkCallback ())
ChVarEn. Trace (' w ', lambda unused0, unused1, unused2: checkCallback ())
CodePudding user response:
Should be the three passed as a parameter to checkCallback () and then get a return value, after all your checkCallback () parameter is uncertainCodePudding user response: