Gtk IconView 不按Ctrl 选择多个?
是否可以使 Gtk IconView(在 pygtk 中)允许选择多个图标而无需按下 Ctrl 键?
我基本上希望 Ctrl 的行为被按下,即使它没有被按下。
Is it possible to make Gtk IconView (in pygtk) allow selection of multiple icons without the Ctrl key being pressed?
I basically want the behaviour of Ctrl being held down even when it is not held down.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
覆盖这种行为可能会让用户感到困惑。但如果你真的愿意,我可以看到两种可能性:
要么让
IconView
相信 Ctrl 总是被按下:或者你可以尝试自己实现选择行为,像这样的东西:
Overriding this kind of behaviour might confuse users. But if you really want to, there are two possibilities that I can see:
Either make the
IconView
believe Ctrl is always pressed:Or you could try implementing the selection behaviour yourself, something like: