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.md
source 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

  1. Create a QPushButton that triggers a file selection dialog.
  2. Use QFileDialog to allow the user to select a file path.
  3. Display the selected file path in a QLineEdit widget.
  4. Implement a function to save a pandas DataFrame to the file path specified in the QLineEdit.
  5. Wrap the saving operation in a try-except block.
  6. 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