Python - 如何获取可执行程序以弹出Windows文件浏览器以供用户选择excel文件或任何其他文档?

时间:2023-01-17 10:04:07

The program would follow the below steps:

该计划将遵循以下步骤:

  1. Click on executable program made through python
  2. 单击通过python制作的可执行程序
  3. File explorer pops up for user to choose excel file to alter
  4. 弹出文件浏览器供用户选择要更改的Excel文件
  5. Choose excel file for executable program to alter
  6. 选择excel文件以进行可执行程序更改
  7. Spits out txt file OR excel spreadsheet with newly altered data to same folder location as the original spreadsheet
  8. 将新修改的数据的txt文件或excel电子表格吐出到与原始电子表格相同的文件夹位置

1 个解决方案

#1


0  

Yes this is perfectly doable. I suggest you look at PyQT5 or TkInter for the user interface, pyexcel for the excel interface and pyinstaller for packaging up an executable as you asked. There are many great tutorials on all of these modules.

是的,这是完全可行的。我建议您查看用户界面的PyQT5或TkInter,excel接口的pyexcel和用于打包可执行文件的pyinstaller。所有这些模块都有许多很棒的教程。

#1


0  

Yes this is perfectly doable. I suggest you look at PyQT5 or TkInter for the user interface, pyexcel for the excel interface and pyinstaller for packaging up an executable as you asked. There are many great tutorials on all of these modules.

是的,这是完全可行的。我建议您查看用户界面的PyQT5或TkInter,excel接口的pyexcel和用于打包可执行文件的pyinstaller。所有这些模块都有许多很棒的教程。