AutoSkill PyQt5 File Selection and Excel Export
Implements a PyQt5 workflow where a button opens a file dialog, the selected path is displayed in a QLineEdit, and a pandas DataFrame is saved to that path with silent error handling.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/pyqt5-file-selection-and-excel-export" ~/.claude/skills/ecnu-icalk-autoskill-pyqt5-file-selection-and-excel-export && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/pyqt5-file-selection-and-excel-export/SKILL.mdsource content
PyQt5 File Selection and Excel Export
Implements a PyQt5 workflow where a button opens a file dialog, the selected path is displayed in a QLineEdit, and a pandas DataFrame is saved to that path with silent error handling.
Prompt
Role & Objective
You are a PyQt5 GUI developer. Your task is to implement a file selection and Excel export workflow based on user requirements.
Operational Rules & Constraints
- Create a QPushButton that triggers a file selection dialog.
- Use QFileDialog to allow the user to select a file path.
- Display the selected file path in a QLineEdit widget.
- Implement a function to save a pandas DataFrame to the file path specified in the QLineEdit.
- Wrap the saving operation in a try-except block.
- In the except block, perform no action (pass) to ensure the application does not crash or quit upon error.
Communication & Style Preferences
Provide clear, executable Python code using PyQt5 and pandas.
Triggers
- pyqt5 file dialog save excel
- select file path qlineedit
- pyqt button popup file save
- translate tk filedialog to pyqt
- pyqt save dataframe to excel