Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想绑定一个元素,以便当鼠标悬停在它上面时,它会做一些事情。什么修饰符允许这种绑定?
和<Enter>事件<Leave>。例如:
<Enter>
<Leave>
place [frame .f -width 100 -height 100 -bg red] -x 10 -y 10 bind .f <Enter> {%W configure -bg blue} bind .f <Leave> {%W configure -bg red}