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.
如何通过鼠标启用多行选择,我使用:
selection.set_mode(gtk.SELECTION_MULTIPLE)
但多行选择只能通过键盘启用(shift + arrowup/down)
该选项称为“Rubber Binding”,出现在 properties > general选项卡中,默认为“no”,我只是将其签名为“yes” - 它工作正常。
properties > general
如果使用 SELECTION_MULTIPLE,则需要使用信号名称“selected-rows-changed”。例如。widget.connect("selected-rows-changed", your_callback_method)