podgorskiy / bimpy

imgui for python
https://podgorskiy.github.io/bimpy/
MIT License
204 stars 32 forks source link

Minor issue in the readme hello world: #37

Open erwincoumans opened 3 years ago

erwincoumans commented 3 years ago

Nice project!

bp.input_text('string', str, 256) should be bp.input_text('string', s, 256)

import bimpy as bp

ctx = bp.Context()

ctx.init(600, 600, "Hello")

s = bp.String()
f = bp.Float()

while not ctx.should_close():
    with ctx:
        bp.text("Hello, world!")

        if bp.button("OK"):
            print(s.value)

        bp.input_text('string', str, 256)

        bp.slider_float("float", f, 0, 1)