Metadata-Version: 2.1
Name: toolgui
Version: 0.0.4
Summary: Simple app to manage imgui windows for development tools written in python.
Home-page: https://github.com/rempelj/toolgui
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Description-Content-Type: text/markdown
Requires-Dist: imgui[glfw]
Provides-Extra: dev
Requires-Dist: twine ; extra == 'dev'
Requires-Dist: wheel ; extra == 'dev'

# toolgui

Simple app to manage imgui windows for development tools written in python. 

![](https://github.com/rempelj/toolgui/raw/master/docs/images/toolgui.gif)

## Installation

```
pip install toolgui
```

## Usage

```python
import imgui
import toolgui

@toolgui.settings("example")
class Settings:
    window_open = False


@toolgui.menu_item("Example/Hello World")
def show_window():
    Settings.window_open = True


@toolgui.on_update()
def update_window():
    if Settings.window_open:
        expanded, Settings.window_open = imgui.begin("Hello World", True)
        imgui.text("Hello world")
        imgui.end()


toolgui.start_toolgui_app()
```



