You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
871 B
Markdown
32 lines
871 B
Markdown
A PyGame powered tool for quickly sorting stuff into categories
|
|
==========
|
|
|
|
This is a simple tool that will somehow present items of various types and
|
|
allow categorising them interactively.
|
|
|
|
Installation
|
|
------------
|
|
|
|
Run `pip install -e .` in the project directory. You should probably use `venv` or similar.
|
|
|
|
(This is PoC-stage, so no fancy packaging as of now.)
|
|
|
|
Usage
|
|
-----
|
|
|
|
`./TODO <stuff -c category1,category2,... -o result.json [-r renderer]`
|
|
|
|
or
|
|
|
|
`./TODO -i stuff -c category1,category2,... -o result.json [-r renderer]`
|
|
|
|
The default renderer only displays the item as the text. The API for custom renderer is:
|
|
|
|
```python3
|
|
class Whatever(triditko.Renderer):
|
|
def render(itemname: str, w: int, h: int) -> pygame.Surface: ...
|
|
```
|
|
|
|
The renderer is passed as the fully qualified class name (i.e. if that code is
|
|
in file `renderers.py`, pass `renderers:Whatever`)
|