Home > other >  Tinter trace problems
Tinter trace problems

Time:10-24

Could you tell me the lambda behind why there are three unused here? What is the meaning? What's the use?

 # 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 uncertain

CodePudding user response:

reference 1st floor Swing0_0 response:
should be the three passed as a parameter to checkCallback () and then get a return value, after all your checkCallback () parameter is uncertain
checkCallback () method is not used inside unused0, unused1 and unused2 these three parameters? Can you explain it in detail?
  • Related