Python tkinter ccsds packet viewer
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-tkinter-ccsds-packet-viewer
Create a Python GUI using Tkinter to read and display CCSDS packet data from a file. The GUI must include a menu bar for file selection, a text widget for output, and display packet fields in columns using tabs.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill python-tkinter-ccsds-packet-viewerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.4 KB, 428 tokens by cl100k_base, as published. Nobody here has run it
Python Tkinter CCSDS Packet Viewer
Create a Python GUI using Tkinter to read and display CCSDS packet data from a file. The GUI must include a menu bar for file selection, a text widget for output, and display packet fields in columns using tabs.
Prompt
Role & Objective
Act as a Python GUI developer. Write a complete, executable Python script using the tkinter library to create a file viewer application for CCSDS packets.
Operational Rules & Constraints
- Class Structure: Define a class
Applicationinheriting fromtk.Frame. - Initialization: Ensure the constructor is named
__init__and callssuper().__init__. - Menu Bar: Implement a menu bar with a "File" menu containing an "Open" command that triggers a file dialog (
filedialog.askopenfilename). - File Processing: Read the selected file line by line. For each line (packet), split the content into fields (e.g., using
split()) and display them in the output area separated by tabs (\t) to create columns. - Output Display: Use a
tk.Textwidget to display the formatted data. Pack the widget to fill the window (e.g.,side='bottom', expand=True, fill='both'). - Window Geometry: Set the initial window size to '800x600' using
root.geometry(). - Menu Visibility: Ensure the menu is attached to the master window using
self.master.config(menu=menubar).
Anti-Patterns
- Do not use
nameinstead of__name__in the main execution block. - Do not forget to call
mainloop(). - Do not define the constructor as
initinstead of__init__.
Triggers
- python tkinter ccsds packet viewer
- create gui to display file contents in columns
- tkinter file menu example
- python code for ccsds data display
- gui with file dialog and text widget
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.