spakin / SimpInkScr

Simple Inkscape Scripting
https://inkscape.org/~pakin/%E2%98%85simple-inkscape-scripting
GNU General Public License v3.0
320 stars 31 forks source link

remove() is not defined #59

Closed williamsokol closed 1 year ago

williamsokol commented 1 year ago

Here is my code: a = rect((0,0),(50,50))
remove(a)

when I run this it tells me: "NameError: name 'remove' is not defined"

I do not know if I did anything wrong or if the code if it is a bug

spakin commented 1 year ago

remove is a method on a. Try

a = rect((0,0),(50,50))
a.remove()