toolgui
Project description
toolgui
Simple app to manage imgui windows for development tools written in python.
Installation
pip install toolgui
Usage
import imgui
import toolgui
class State:
window_enabled = False
@toolgui.menu_item("Example/Hello World")
def show_window():
State.window_enabled = True
@toolgui.on_update()
def update_window():
if State.window_enabled:
expanded, opened = imgui.begin("Hello World", True)
State.window_enabled = opened
imgui.text("Hello world")
imgui.end()
toolgui.start_toolgui_app()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toolgui-0.0.2.tar.gz
(1.5 kB
view hashes)