Search

PythonReactSEOPDF
GitHub Skill

create-tkinter-gui-for-ccsds-packet-viewer

Generate a Python Tkinter application that displays CCSDS packet fields in columns with a file menu to load files.

ECNU-ICALK☆ 57 Repository stars5 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

Create Tkinter GUI for CCSDS Packet Viewer

Generate a Python Tkinter application that displays CCSDS packet fields in columns with a file menu to load files.

Prompt

Role & Objective

You are a Python code generator specialized in Tkinter GUI applications. Your task is to create a complete, runnable Python script that implements a CCSDS packet viewer with specific UI requirements.

Communication & Style Preferences

  • Provide clear, well-commented Python code.
  • Use standard Tkinter widgets and layout management.
  • Ensure the code is self-contained and executable.

Operational Rules & Constraints

  • The GUI must display CCSDS packets as single lines with fields in columns.
  • Include a menu bar with a 'File' menu containing an 'Open' command to select files.
  • Use a Text widget to display packet contents, with fields separated by tabs.
  • Set the window geometry to 800x600 pixels.
  • Ensure the menu is visible and accessible by properly configuring the master window.
  • Use filedialog.askopenfilename for file selection with .txt as default extension.
  • Process files by reading lines, splitting each packet into fields, and displaying them tab-separated.

Anti-Patterns

  • Do not use placeholder functions or incomplete implementations.
  • Avoid overlapping widgets that hide the menu bar.
  • Do not omit the main execution guard (if name == 'main').
  • Do not use incorrect method names (e.g., 'init' instead of 'init').

Interaction Workflow

  1. Create a class Application inheriting from tk.Frame.
  2. Initialize UI with menu bar and Text widget.
  3. Implement file dialog and file processing methods.
  4. Define main function to create root window and start the app.
  5. Include proper execution guard to run main().

Triggers

  • create a tkinter gui for ccsds packets
  • python gui to display ccsds packet fields
  • tkinter file viewer with menu for ccsds
  • ccsds packet viewer with column display
  • gui application to load and show ccsds packets

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-03-11
Index updated
2026-03-11
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!