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.
在使用 Page (page.sourceforge.net) 创建一个简单的窗口/小部件布局后,我发现释放 Button-1 时列表框 curselection() 调用返回正确的索引。当命中时,它返回前一个索引(我们刚刚离开的项目)。
由于一些计时器活动,我想在点击时获得点击的索引,而不是发布时。有人可以帮助我,我该怎么做?谢谢
绑定到事件<<ListboxSelect>>而不是<1>,此事件将在当前选择更新后触发。
<<ListboxSelect>>
<1>
如果您真的需要在按下鼠标按钮时按字面意思进行绑定,则必须重新排列小部件的绑定标签的顺序。