Skip to content
OpenSmartRoute
Skillv1.0.0

python_tkinter_ccsds_packet_viewer

Generates a Python GUI application using Tkinter to load and display CCSDS packet files. The application features a file menu for loading data and displays packet fields in tab-separated columns withi

by David-Li0406(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from David-Li0406/meta-skill-evloving (AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/python_tkinter_ccsds_packet_viewer/SKILL.md). Install upstream with npx skills add David-Li0406/meta-skill-evloving --skill python_tkinter_ccsds_packet_viewer. Copyright stays with the author.

python_tkinter_ccsds_packet_viewer

Generates a Python GUI application using Tkinter to load and display CCSDS packet files. The application features a file menu for loading data and displays packet fields in tab-separated columns within a text widget.

Prompt

Role & Objective

You are a Python GUI developer. Write a Python script using the tkinter library to create a GUI application that reads and displays the contents of a file containing CCSDS packets.

Operational Rules & Constraints

  1. Framework: Use tkinter and tkinter.filedialog.
  2. Structure: Define a class Application that inherits from tk.Frame.
  3. Menu System:
    • Create a menu bar attached to the master window.
    • Include a "File" menu with an "Open" command that triggers a file dialog.
    • Ensure the menu is visible by configuring it on the master window (self.master.config(menu=menubar)).
  4. File Loading:
    • Use filedialog.askopenfilename to select files.
    • Support text files (.txt) by default.
  5. Data Display:
    • Use a tk.Text widget to display the output.
    • Read the file line by line.
    • Split each line into fields using whitespace (packet.split()).
    • Display fields as tab-separated values ('\t'.join(packetfields)) to create columns.
    • Insert the formatted string into the Text widget.
  6. Window Configuration:
    • Set the window geometry (e.g., '800x600') to ensure the menu and content are visible.
    • Pack the Text widget to fill the available space (e.g., side='bottom', expand=True, fill='both').
  7. Code Quality: The code must be properly indented according to Python standards (PEP 8).

Anti-Patterns

  • Do not use hardcoded file paths; always use a file dialog.
  • Do not omit the if __name__ == '__main__': block.
  • Do not forget to call super().__init__(master) in the class constructor.

Triggers

  • create a python gui for ccsds packets
  • tkinter file viewer with columns
  • display ccsds data in a gui
  • python code to load and show packets in columns
  • build a gui to load and view ccsds files

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/david-li0406-meta-skill-evloving-python-tkinter-ccsds-pa-0d5f9c/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

david-li0406-meta-skill-evloving-python-tkinter-ccsds-pa-0d5f9c.ocm.jsonjson
{
  "ocm": "1",
  "id": "david-li0406-meta-skill-evloving-python-tkinter-ccsds-pa-0d5f9c",
  "kind": "skill",
  "name": "python_tkinter_ccsds_packet_viewer",
  "description": "Generates a Python GUI application using Tkinter to load and display CCSDS packet files. The application features a file menu for loading data and displays packet fields in tab-separated columns within a text widget.",
  "publisher": "David-Li0406",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "python",
      "tkinter",
      "gui",
      "ccsds",
      "file-viewer",
      "table",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generates a Python GUI application using Tkinter to load and display CCSDS packet files. The application features a file menu for loading data and displays packet fields in tab-separated columns within a text widget."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/David-Li0406/meta-skill-evloving",
      "path": "AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/python_tkinter_ccsds_packet_viewer/SKILL.md",
      "ref": "ca3a335628981df10c36e00cb9850df2c247ab9a",
      "url": "https://github.com/David-Li0406/meta-skill-evloving/blob/ca3a335628981df10c36e00cb9850df2c247ab9a/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/python_tkinter_ccsds_packet_viewer/SKILL.md",
      "key": "David-Li0406/meta-skill-evloving/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/python_tkinter_ccsds_packet_viewer/SKILL.md"
    }
  },
  "instructions": "# python_tkinter_ccsds_packet_viewer\n\nGenerates a Python GUI application using Tkinter to load and display CCSDS packet files. The application features a file menu for loading data and displays packet fields in tab-separated columns within a text widget.\n\n## Prompt\n\n# Role & Objective\nYou are a Python GUI developer. Write a Python script using the `tkinter` library to create a GUI application that reads and displays the contents of a file containing CCSDS packets.\n\n# Operational Rules & Constraints\n1. **Framework**: Use `tkinter` and `tkinter.filedialog`.\n2. **Structure**: Define a class `Appl",
  "cost": {
    "context_tokens": 521
  }
}

Fetch it by URL: GET /api/v1/registry/david-li0406-meta-skill-evloving-python-tkinter-ccsds-pa-0d5f9c/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.