Home > other >  Which how to judge ordered python tkinter multiple button?
Which how to judge ordered python tkinter multiple button?

Time:12-19

 b1=tk. The Button (window, text='test 1, width=8, height=1, the command=test), place (x=5, y=10) 
B2=tk. The Button (window, text='2' test, width=8, height=1, the command=test), place (x=5, y=30)


Test method is a multithreaded function here, I need according to click on the button to perform different functions, the first idea is to get the current click on the button text attributes to do judgment, but I can't find the right solution for half a day, for years, the problems encountered in general is how to deal with it

CodePudding user response:

, respectively, set up the command=different function!
You point which button which function it performs,

CodePudding user response:

No, I had a button must be multi-threaded function, inside the multi-thread functions to do the corresponding processing, will not let the program card dead
  • Related