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.
此示例随模块一起提供:
我怎样才能知道底部滑块上参数(标记为红色)的确切值?到达那里的方式并不重要——无论是作为工具提示还是作为在屏幕上绘制的值等。
有几种方法可以访问此信息:
imv = pg.ImageView() i = imv.currentIndex # the currently-displayed frame z = imv.timeLine.Value() # gives access to the line position
您还可以连接回调以检测值何时更改:
imv.timeLine.sigPositionChanged.connect(myCallback)
不过,如何显示值由您决定(工具提示、标签等)