# kottendev/pienote architecture

> Architecture diagram of the GitHub repository kottendev/pienote, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kottendev/pienote
- Repository: https://github.com/kottendev/pienote

## Overview

PieNote is a small Windows notepad application built with Tkinter. The user edits text in the main window, then uses File actions to create, open, or save plain-text files; Help opens an About dialog. The single Python file owns the UI, document state, and file operations. The README describes the product but gives no additional capabilities. The icon image referenced in source is absent from the repository tree, so it is not represented as a repository component.

Main entry points: [`PieNote.py`](https://github.com/kottendev/pienote/blob/main/PieNote.py) (Editor window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Editor UI"]
  node_main["Editor window<br/>[PieNote.py]"]
  node_document["Text buffer<br/>[PieNote.py]"]
  node_about["About dialog<br/>[PieNote.py]"]
end

subgraph group_files["Text Files"]
  node_file_actions["File actions<br/>[PieNote.py]"]
  node_text_file["Text file"]
end

node_user(("User"))

node_user -->|"uses"| node_main
node_main -->|"displays"| node_document
node_main -->|"dispatches"| node_file_actions
node_file_actions -->|"reads or updates"| node_document
node_file_actions -->|"reads or writes"| node_text_file
node_main -->|"opens"| node_about
node_user -->|"requests"| node_about

click node_main "https://github.com/kottendev/pienote/blob/main/PieNote.py"
click node_document "https://github.com/kottendev/pienote/blob/main/PieNote.py"
click node_file_actions "https://github.com/kottendev/pienote/blob/main/PieNote.py"
click node_about "https://github.com/kottendev/pienote/blob/main/PieNote.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_document,node_about,node_user toneBlue
class node_file_actions,node_text_file toneAmber
```

## Components

### Editor UI

- [Editor window](https://github.com/kottendev/pienote/blob/main/PieNote.py): `PieNote.py`
- [Text buffer](https://github.com/kottendev/pienote/blob/main/PieNote.py): `PieNote.py`
- [About dialog](https://github.com/kottendev/pienote/blob/main/PieNote.py): `PieNote.py`

### Text Files

- [File actions](https://github.com/kottendev/pienote/blob/main/PieNote.py): `PieNote.py`
- **Text file**

### Other components

- **User**

## Connections

- User → Editor window: uses (evidence: `PieNote.py`)
- Editor window → Text buffer: displays (evidence: `PieNote.py`)
- Editor window → File actions: dispatches (evidence: `PieNote.py`)
- File actions → Text buffer: reads or updates (evidence: `PieNote.py`)
- File actions → Text file: reads or writes (evidence: `PieNote.py`)
- Editor window → About dialog: opens (evidence: `PieNote.py`)
- User → About dialog: requests (evidence: `PieNote.py`)
