Button command being called automatically

前端 未结 2 789
傲寒
傲寒 2021-01-21 12:13

For some reason, this Button is automatically calling bot_analysis_frame without the button being pressed. I\'m guessing it\'s because the command is a

2条回答
  •  野性不改
    2021-01-21 12:25

    Read the section here on passing callbacks.

    You are storing the result of that function to the command argument and not the function itself.

    I believe this:

    command = lambda: bot_analysis_frame(eventConditionL,eventBreakL)
    

    might work for you.

提交回复
热议问题