如何处理 hildon.Seekbar 中的后退和前进按钮?
hildon.Seekbar 小部件由一个比例小部件和两个按钮组成。 单击按钮时小部件会发送什么信号或者我如何才能找到? 有没有办法监视小部件在 PyGTK 中发送的所有信号/事件?
The hildon.Seekbar widget consists of a scale widget and two buttons. What signals does the widget send when the buttons are clicked or how could I find out? Is there a way to monitor all signals/events that a widget sends in PyGTK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您链接到的文档显示了这一点:
所以看起来它(至少)有两个信号,称为“value-changed”和“notify::fraction”。 它还显示了一个继承图,告诉您 Seekbar 继承了标准 GTK+ Scale< /a> widget,这是第一个信号的来源(通过进一步继承)。
但不确定“notify::fraction”信号来自哪里。
The documentation you linked to shows this:
So it seems it has (at least) two signals called "value-changed" and "notify::fraction". It also shows an inheritance diagram that tells you that the Seekbar inherits the standard GTK+ Scale widget, which is where the first signal comes from (by further inheritance).
Not sure where the "notify::fraction" signal comes from, though.
gobjects 有一种通知属性更改的方法,它通过信号来实现。 因此,连接到 notification::property 可以让您更改属性。
gobjects have a way of notifying about property changes and it does this with signals. So connecting to notify::property gets you changes to property.