【问题标题】:Python, Pyinstaller creating shortcuts in windowsPython,Pyinstaller 在 Windows 中创建快捷方式
【发布时间】:2011-10-04 02:55:17
【问题描述】:

我正在制作一个 python 脚本来创建一个快捷方式 (.lnk) 文件,使用 win32com.client 模块,我正在使用 pyinstaller 将其转换为 exe。我也在使用Tkinter,所以我需要pyinstaller 中的--tk 支持。 Pyinstaller 似乎不适用于 --tk 并同时导入 win32com.client (我不知道为什么)我需要这个才能工作。也许有一种方法可以在没有 win32com.client 的情况下创建快捷方式(我已经搜索了很多但没有成功)或使 pyinstaller 工作(我在 win32com.clientpyinstaller here 之间发现了一个问题,但补丁确实如此' t 解决了我的问题)谢谢!

【问题讨论】:

    标签: python tkinter shortcut win32com pyinstaller


    【解决方案1】:

    如果有人感兴趣,I found a way of creating shortcuts 使用win32com.shell 而不是win32.client
    这适用于将pyinstaller--tk 标志设置为ON

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多