I would like two put these two command in one button. I use for loop, to generate grid buttons.
PC=Button(pc_area, text='RESERVE').pack()
PC['command'] = lambda PC=PC:reserve_confirmation(PC)
PC['command'] = lambda x=line: func(x)
I would like two put these two command in one button. I use for loop, to generate grid buttons.
PC=Button(pc_area, text='RESERVE').pack()
PC['command'] = lambda PC=PC:reserve_confirmation(PC)
PC['command'] = lambda x=line: func(x)
I try this and it works.
PC['command'] = lambda PC=PC,x=line:[reserve_confirmation(PC),func(x)]