How can I move file into Recycle Bin / trash on different platforms using PyQt4?

前端 未结 3 1386
渐次进展
渐次进展 2021-02-01 02:36

I would like to add the next feature to my cross-platform PyQt4 application: when user selects some file and select \"remove\" action on it that file will be moved to Recycle Bi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 03:13

    The best OSX solution I know uses Applescript. I did not, however, invent it, so I shall simply link to it here.

    It would be nice to have a module that packaged up the Win32/KDE/OSX solutions into one, i feel, and imported the correct one on demand. Is that how you solved your problem in the end?

提交回复
热议问题