FileListDialog.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:MPV-VJ2 作者: paulguy 项目源码 文件源码
def setSelection(self):
        model, rows = self.listView.get_selection().get_selected_rows()

        self.selection = ("F", [])
        for row in rows:
            if model[row.get_indices()[0]][1] == "D":
                alertBox = Gtk.MessageDialog(parent=self,
                                             flags=Gtk.DialogFlags.MODAL,
                                             type=Gtk.MessageType.ERROR,
                                             buttons=Gtk.ButtonsType.OK,
                                             message_format="Only multiple files may be selected.")
                alertBox.connect(FileListDialog.closeAlert)
                alertBox.show_all()
                return
            self.selection[1].append(self.listStore[row.get_indices()[0]][0])
        self.emit('response', Gtk.ResponseType.ACCEPT)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号