Get attribute of the selected item

Discussion about writing code for Inkscape.
magikksg
Posts: 1
Joined: Mon Oct 19, 2015 7:44 pm

Get attribute of the selected item

Postby magikksg » Mon Oct 19, 2015 7:49 pm

After selecting the object can by built extension set a new attribute to him (INX + py) but how to retrieve the attribute and its value later with the selected item and display it in the window extensions?

Magik

draftman
Posts: 39
Joined: Sun Jan 25, 2015 5:29 am

Re: Get attribute of the selected item

Postby draftman » Tue Oct 20, 2015 6:45 am

Not sure what your trying to do, but this might help.
use an error message.

Code: Select all

               
                        out_msg = '\t' + str(new attribute) + '\n\t next line of text'
                        inkex.errormsg(out_msg)


Return to “Programming”