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)
Nice project!
bp.input_text('string', str, 256) should be bp.input_text('string', s, 256)