Skip to main content

Simple event-driven GUI framework for building modular tools with Python and ImGui.

Project description

toolgui

Simple event-driven GUI framework for building modular tools with Python and ImGui.

Installation

pip install toolgui

Usage

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()

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

Uploaded Source

Built Distribution

toolgui-0.0.5-py3-none-any.whl (4.2 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