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

Turtle background picture #356

Open
donkirkby opened this issue Dec 29, 2021 · 0 comments
Open

Turtle background picture #356

donkirkby opened this issue Dec 29, 2021 · 0 comments

Comments

@donkirkby
Copy link
Owner

Add support for the Screen.bgpic() method. One challenge is that the PyCharm canvas only supports PNG graphics, not sure about the browser. The turtle module supports at least GIF and PNG graphics, so either add support for GIF to PyCharm and the browser, or use PIL to convert if it's installed and fail if it's not.

Also check why it currently fails with a weird error:

Live coding plugin error:
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/don/.cache/JetBrains/IntelliJIdea2020.1/plugins-sandbox/plugins/livepy/classes/space_tracer/__main__.py", line 6, in <module>
    main()
  File "/home/don/.cache/JetBrains/IntelliJIdea2020.1/plugins-sandbox/plugins/livepy/classes/space_tracer/main.py", line 176, in main
    code_report = tracer.trace_command()
  File "/home/don/.cache/JetBrains/IntelliJIdea2020.1/plugins-sandbox/plugins/livepy/classes/space_tracer/main.py", line 596, in trace_command
    '\n'.join(turtle_report) +
TypeError: sequence item 14: expected str instance, tuple found
@donkirkby donkirkby added this to the Near future milestone Dec 29, 2021
@AishwaryaSohoni AishwaryaSohoni removed their assignment Mar 20, 2023
@donkirkby donkirkby removed this from the PyCascades Sprint milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants