We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Unable to set title using title(). Leads to following error
title()
py36/lib/python3.6/site-packages/glfw/__init__.py", line 68, in <lambda> _to_char_p = lambda s: s.encode('utf-8') AttributeError: 'bytes' object has no attribute 'encode' ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> for Event ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 2 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 4 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 8 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 16 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 32 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 64 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 128 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 256 ERROR: Invoking <bound method Sketch.on_timer of <Sketch (Glfw) at 0x7fb444bfcda0>> repeat 512
To Reproduce
from p5 import * def setup(): title("hellow") size(800,600) def draw(): pass run()
System information:
The text was updated successfully, but these errors were encountered:
Thank you for submitting your first issue to p5py
Sorry, something went wrong.
The only workaround seems setting builtins.title before running
builtins.title
Following works
from p5 import * def setup(): # title("hellow") size(800,600) def draw(): pass builtins.title = "hellow" run()
No branches or pull requests
Describe the bug
Unable to set title using
title()
. Leads to following errorTo Reproduce
System information:
The text was updated successfully, but these errors were encountered: