我一直在玩这个cookbook example来用wxPython制作一个可滚动的matplotlib绘图。然而,当我在我的Windows7机器上运行这段代码时,滚动条似乎不能正常工作。特别是,如果我点击并拖动到某个位置,它确实会更新绘图,但是滚动条会向后移动其起始位置,而不是停留在原地。我很好奇是否有人知道这里发生了什么。FWIW,当我在家里的linuxmint14机器上运行时,这个代码运行得很好。在
现在,我正试图用wx.滚动窗口或者wx.lib.滚动面板而不是像示例中那样将滚动条直接添加到画布中。我也在考虑用滑块代替滚动条
谢谢
从Programing Windows, Fifth Edition(强调我的)。。。在
…所以在} 类似于。。。在
OnScrollEvt()
方法的某个地方,您需要调用^{相关问题 更多 >
编程相关推荐