Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor issue in the readme hello world: #37

Open
erwincoumans opened this issue Jan 2, 2021 · 0 comments
Open

Minor issue in the readme hello world: #37

erwincoumans opened this issue Jan 2, 2021 · 0 comments

Comments

@erwincoumans
Copy link

erwincoumans commented Jan 2, 2021

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)

danr pushed a commit to danr/bimpy that referenced this issue Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant