Skip to main content

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


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.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

toolgui-0.0.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page