Post #5029: The standard double quotation marks in Python are straight quotes ", but you a

πŸ“‹ Metadata

  • Author: Pluglug
  • Date: 2024-02-03 20:03:34
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_05028

🏷️ Tags

python-scripting beginner solved

  • Python Scripting
  • Macro Editor

πŸ’¬ Content

The standard double quotation marks in Python are straight quotes ", but you are using smart quotes (β€œ). These are invalid as Python string literals.

# draw_menu(β€œss_shading”, frame=True, dx=0, dy=-30)  # SyntaxError
draw_menu("ss_shading", frame=True, dx=0, dy=-30)

πŸ”— View on Blender Artists