Skip to content

draw_dashed_line(drawing: str, p1: list[float], p2: list[float], color: list[float], thickness: int, spacing: int, tag: str): #28

@monkeycc

Description

@monkeycc

I have a problem here. I don't know how to solve it

Desktop (please complete the following information):

  • OS: win11
  • python: 3.7
python SimpleDrawing.py
Traceback (most recent call last):
  File "SimpleDrawing.py", line 10, in <module>
    import tools
  File "D:\0SDXX\SimpleDrawing-Desktop-App\tools\__init__.py", line 16, in <module>
    from tools.dashedLineTool import dashedLineTool
  File "D:\0SDXX\SimpleDrawing-Desktop-App\tools\dashedLineTool.py", line 7, in <module>
    def draw_dashed_line(drawing: str, p1: list[float], p2: list[float], color: list[float], thickness: int, spacing: int, tag: str):
TypeError: 'type' object is not subscriptable

Thanks for sharing the code, very good program

Do you have any plans to upgrade to the latest version DearPyGui 1.6.X

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions