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

text unusable due to TypeError #6

Open
nonchip opened this issue Jul 11, 2021 · 2 comments
Open

text unusable due to TypeError #6

nonchip opened this issue Jul 11, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@nonchip
Copy link

nonchip commented Jul 11, 2021

in https://github.com/supermerill/FreePySCAD/blob/master/freepyscad.py#L1846 you list+str.

@nonchip
Copy link
Author

nonchip commented Jul 11, 2021

oh also if the text string is of length 0:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 12, in <module>
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 135, in redraw
    node.create()
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 246, in create
    action[0](*action[1])
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 325, in create_childs
    enode.create()
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 246, in create
    action[0](*action[1])
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 325, in create_childs
    enode.create()
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 246, in create
    action[0](*action[1])
  File "/home/kyra/.config/SuperSlicer/scripts/FreePySCAD/freepyscad.py", line 1863, in createText
    textComponents[0].removeObject(compo)
TypeError: argument 1 must be str, not FeaturePython

@supermerill supermerill added the bug Something isn't working label Jul 11, 2021
@supermerill
Copy link
Owner

First issue should be fixed.
i'll do something for the nop of the second issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants