Metadata-Version: 2.4
Name: thonny-se
Version: 1.2.0
Summary: Visual software modelling in Thonny with structured flowcharts, UML class diagrams and interactive object inspection
Author: Sebastian Ladhoff
License-Expression: GPL-3.0-only AND ISC AND MIT
Project-URL: Homepage, https://github.com/mydump/Thonny-SE
Project-URL: Repository, https://github.com/mydump/Thonny-SE
Project-URL: Issues, https://github.com/mydump/Thonny-SE/issues
Project-URL: Documentation, https://github.com/mydump/Thonny-SE/blob/main/MANUAL.md
Project-URL: Changelog, https://github.com/mydump/Thonny-SE/releases
Keywords: thonny,education,uml,structogram,software modelling,tkinter
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Education
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: src/thonnycontrib/thonny_se/icons/licenses/LICENSE-lucide.txt
License-File: src/thonnycontrib/thonny_se/icons/licenses/LICENSE-lucide-actions.txt
Requires-Dist: thonny<5.1,>=5.0
Requires-Dist: Pillow>=10.1
Dynamic: license-file

# Thonny SE

English · [Deutsch](https://github.com/mydump/Thonny-SE/blob/main/README.de.md)

Design your software right in Thonny. With structured flowcharts, UML and an interactive object bench. Easy to get into, so you can focus on your ideas.

## Contents

[Features](#what-you-can-do) · [Requirements](#what-you-need) · [Getting started](#get-started) · [Manual](https://github.com/mydump/Thonny-SE/blob/main/MANUAL.md) · [Educational references](#educational-references) · [Technical feature list](#technical-features)

## What you can do

`Plan algorithms with structograms` – Model algorithms as Nassi–Shneiderman diagrams with statements, branches and loops. Move and edit the blocks to suit your plan.

| Light | Dark |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/01-structogram.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/01-structogram.png" alt="Structogram with nested loops, a branch and separate design and zoom controls" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/01-structogram-dark.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/01-structogram-dark.png" alt="Structogram with nested loops, a branch and separate design and zoom controls (dark mode)" width="500"></a> |

`Design your classes` – Design UML class diagrams with attributes, methods and visibility. Model relationships such as inheritance or composition, and add roles and multiplicities.

| Light | Dark |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/02-uml.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/02-uml.png" alt="Bank model with inheritance, aggregation and the diagram design control" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/02-uml-dark.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/02-uml-dark.png" alt="Bank model with inheritance, aggregation and the diagram design control (dark mode)" width="500"></a> |

`Move between models and code` – Turn your diagrams into Python code or your code into diagrams. For linked classes, you choose which changes to apply.

| Light | Dark |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/03-code-model.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/03-code-model.png" alt="Change preview with file name, transfer direction and selectable updates (light mode)" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/03-code-model-dark.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/03-code-model-dark.png" alt="Change preview with file name, transfer direction and selectable updates (dark mode)" width="500"></a> |

`Make diagrams fit your purpose` – Make your diagrams more compact and give them stronger lines. At higher design settings, the text becomes bold. The changes also appear in image exports. Zoom only changes your view on screen.

| Design: 100% | Design: 175% |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/09-design-before.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/09-design-before.png" alt="Structogram at 100% design" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/09-design-after.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/09-design-after.png" alt="The same structogram at 175% design, with stronger lines and more compact spacing" width="500"></a> |

`Take your diagrams with you` – Save your designs as PNG, SVG or WebP. Ready for a worksheet, a presentation or your documentation.

<img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/04-export.png" alt="PNG export with image size, transparency and monochrome options" width="267">

<br>


`Try your objects` – Create several objects from your UML classes. Inspect their values, call methods and expand lists and nested objects. Move the cards, collapse them or remove objects from the bench. Changed values briefly light up. Select a nested object or a list to highlight the related objects.

| Light | Dark |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/05-objects.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/05-objects.png" alt="Object bench with related accounts highlighted, a changed balance and collapsed cards" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/05-objects-dark.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/05-objects-dark.png" alt="Object bench with related accounts highlighted, a changed balance and collapsed cards (dark mode)" width="500"></a> |


Call a method. Read its description from the code, enter suitable values and inspect the return value. If it returns an object, keep it under your own name in the object bench and explore it further.

| Light | Dark |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/08-method-call.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/08-method-call.png" alt="Method call with code documentation and a returned object ready to keep" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/08-method-call-dark.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/08-method-call-dark.png" alt="Method call with code documentation and a returned object ready to keep (dark mode)" width="500"></a> |

`Learn and present comfortably` – Familiar controls, an uncluttered interface and clear visuals help you focus on your content. The aim is to keep everything sharp and easy to use across multiple displays with different scaling settings – while learning, explaining and presenting. Choose a light or dark appearance for Thonny SE, including its diagrams, editing controls and object bench.

| Light | Dark |
| --- | --- |
| <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/06-thonny.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/06-thonny.png" alt="UML method editor in light mode" width="500"></a> | <a href="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/06-thonny-dark.png?raw=true"><img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/06-thonny-dark.png" alt="UML method editor in dark mode" width="500"></a> |

`Cats` are around too.

<img src="https://raw.githubusercontent.com/mydump/Thonny-SE/v1.2.0/images/readme/07-cat.png" alt="Waving cat head" width="250">


## What you need

Thonny 5.0.x and Python 3.10 or later.

Tested on macOS and Windows. Also runs on Linux. Feedback on using it on Linux is welcome.

## Get started

Install through PyPI or download a wheel from GitHub.

[Download the latest release](https://github.com/mydump/Thonny-SE/releases/latest) · [All releases](https://github.com/mydump/Thonny-SE/releases)

### Through Thonny’s plug-in manager

1. In Thonny, open `Tools → Manage plug-ins...`.
2. Search for `thonny-se`.
3. Select the plug-in and click `Install`.

### With a wheel file from GitHub

1. Download the file ending in `.whl` from the [GitHub releases](https://github.com/mydump/Thonny-SE/releases).
2. In Thonny, open `Tools → Manage plug-ins...`.
3. Choose `Install from local file` and open the downloaded wheel file.

Restart Thonny after installation.

Under `File`, create a `New structogram` or a `New UML diagram`. Open the object bench under `View → Object inspector SE`.

### Installing on a school network

Many schools use a proxy server for internet access. Thonny 5.0 has no dedicated proxy field in its settings. Installation can fail without the correct proxy. This also affects a local wheel file when dependencies still need to be downloaded.

<details>
<summary>Set a proxy for installation</summary>

In Thonny, open `Tools → Open system shell...` and enter this command:

```sh
pip config --user set global.proxy http://proxy.schule.de:8080
```

Replace the example address and port with the details provided by your school. The setting is saved permanently for the current user and also applies to later pip commands.

Then install the plug-in through the plug-in manager or the wheel file.

</details>

## Bring your classes to life

Run your UML design and try its objects. You do not need your own Python file yet. The [manual](https://github.com/mydump/Thonny-SE/blob/main/MANUAL.md) walks you through getting started and explains how diagrams, code and the object bench work together.

## Your feedback helps

Found a bug or have an idea? Open a [GitHub issue](https://github.com/mydump/Thonny-SE/issues). For bugs, include your Thonny version, your operating system and the steps needed to reproduce the problem.

## Educational references

Thonny SE’s school-related requirements are informed by the curricula of Mecklenburg-Vorpommern, Germany, and the supplementary reference materials (Tafelwerkergänzungen).

- [Mecklenburg-Vorpommern curricula for computer science and media education](https://www.bildung-mv.de/unterricht/rahmenplaene/rahmenplaene-fuer-die-allgemein-bildenden-faecher/informatik-und-medienbildung/)
- [Supplementary reference materials on “Informatik in der Schule MV”](https://schule.informatik.uni-rostock.de/course/view.php?id=87)

As of 9 November 2026.

## Technical features

### Structogram editor

- Nassi–Shneiderman diagrams with nested blocks.
- Statements, function calls, one-way and two-way selection, and multi-way selection.
- While loops, fixed repetition counts, counting loops and for-each loops.
- Switchable basic and full block palettes.
- Activation and deactivation of blocks. Deactivated subtrees stay in the design and are omitted from Python and image exports.
- Drag-and-drop, select all, contiguous multi-selection and clipboard operations, including between diagram tabs.
- Undo/redo, zoom and scrolling, plus keyboard navigation and keyboard editing.
- Adjustable diagram design: line thickness, spacing and font weight, including in image exports.
- Design settings apply to the open tab and are not saved in the diagram file.
- Python import from the full editor content or a text selection. Constructs without a structural representation are retained as code blocks.
- Python export of the full diagram or selected blocks. Non-executable statement text is retained as comments, while control expressions are validated.
- Monochrome display.
- Readable, text-based JSON file format.
- Straightforward PNG, SVG and WebP export with configurable raster resolution, transparency and monochrome output.

### UML class editor

- Classes, abstract classes and interfaces.
- Attributes with visibility, type and optional initial value.
- Methods with visibility, parameters, parameter types, default values and return type.
- Constructor parameters and optional display of the constructor using the class name.
- Getter/setter generation for attributes.
- Automatic initial values when selecting an attribute type, with an option to turn this off.
- Separately configurable checks for known type names and matching initial values or parameter defaults.
- Association, directed association, aggregation, composition, inheritance and interface realization.
- Roles, multiplicities and relationship names.
- Self-relationships for association, aggregation and composition, with separate roles and multiplicities.
- Freely positioned class cards and manually adjustable relationship curves.
- Group selection and movement of classes, plus copying between diagrams with internal relationships and attached comments.
- Optional visual or magnetic grid for snapping class positions.
- Movable, resizable comments with optional class attachment.
- Python import from the current editor, individual files or all Python files in a folder, excluding subfolders.
- Relationship inference from base classes and attribute types.
- Python code generation for individual classes or the entire diagram.
- Persistent source links and explicit updates in both directions, individually or across multiple classes.
- Change preview with individual and group selection and conflict handling.
- Preservation of existing method implementations when updating signatures.
- Navigation to the linked class, method or attribute definition in Python code.
- Execution of the current diagram state using Thonny’s `Run` command / <kbd>F5</kbd>, without saving first or creating a Python file.
- Undo/redo, zoom and scrolling.
- Adjustable diagram design: line thickness, spacing and font weight, including in image exports.
- Design settings apply to the open tab and are not saved in the diagram file.
- Readable, text-based JSON file format.
- Straightforward PNG, SVG and WebP export with configurable raster resolution, transparency and monochrome output.

### Object bench

- Instantiation of UML classes after successful execution of the diagram. After code-affecting changes, run the diagram again before creating new objects.
- Create several instances in the same dialog, with suggested unused object names.
- Parameter fields with required entries, grey default placeholders and selection of existing objects.
- Optional live type checking for literals and known variables, enabled by default.
- Matching focus highlights in the field and signature, plus documentation from Python docstrings.
- Named instances displayed with their class, attribute values and methods.
- Reorder and fully collapse object cards; remove objects from the bench.
- Shared highlights for referenced objects and members of a list, even while the list is collapsed.
- Changed values briefly light up.
- Keep returned objects under your own name in the object bench.
- Optimized rendering and selection for larger object benches.
- Method calls with return values in the dialog and complete Python errors in the Shell.
- Interrupt running methods and constructors; end the Python session if needed.
- Object state updates after completed executions and method calls.
- Expandable lists, tuples, dictionaries, sets and frozensets.
- Incremental loading of larger collections.
- Referenced nested objects displayed as indented object cards with callable methods.
- Indication of shared object identities and cyclic references.
- Preservation of expanded branches during state updates.
- Methods shown as individual buttons by default, with an optional drop-down list.
- Indication of differences between the loaded program state and the UML design.
- Existing objects remain available after design changes. Running the diagram again restarts the object session.
