各位大侠好,小弟在tkinter开发中又遇到了一个问题,还希望各位大侠鼎力相助,谢谢!
GUI界面上有很多button,想用bind将button绑定功能:鼠标移动到button上能够提示此button的功能。功能已经实现,但遇到一个问题:当一个button的功能提示框显示出来以后,并且是重叠在另外一个button上时,点击ok关闭提示框后,另外一个button的功能提示框会接着显示出来,不知道这个怎么弄?还望各位大侠帮忙,谢谢!
代码如下:
gui界面:
logContinueButton=tk.Button(commonRow2Frame,text=”LOG Continue”,width=12,command=AdbCmdImpl.adbCmdLogContinue) logContinueButton.pack(side=tk.LEFT,fill=tk.X,padx=2,pady=3)
logContinueButton.bind(““,func=lambda buttonIndex: ShowButtonTip.showButtonFunctionInfo(buttonIndex,buttonConst.LOG_CONTINUE_BUTTON))
DPEnableButton=tk.Button(commonRow2Frame,text=”Debug Parser En”,command=AdbCmdImpl.adbCmdDPEnable) DPEnableButton.pack(side=tk.LEFT,fill=tk.X,padx=1,pady=3)
DPEnableButton.bind(““,func=