XIA 2.2 Extension won't work - Exception in Tkinter callback

Post questions on how to use or achieve an effect in Inkscape.
sineadco
Posts: 3
Joined: Mon May 15, 2017 6:21 pm

XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby sineadco » Mon May 15, 2017 6:55 pm

Hi, I'm pretty new to Inkscape and XIA...hoping someone can help me with this one.
FYI -- I'm running XIA 2.2 with Inkscape 0.92.1 on MS Windows 7 Professional N. After installing the correct versions of Inkscape/XIA from Top

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby Moini » Tue May 16, 2017 1:24 am

The people who will most probably know more about how that extension works internally are its authors. Have you contacted them?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

sineadco
Posts: 3
Joined: Mon May 15, 2017 6:21 pm

Re: XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby sineadco » Tue May 16, 2017 1:49 am

Thanks, yes, I'm simultaneously reaching out by email to the French academic institution that created the XIA extension...http://www.dane.ac-versailles.fr. Nothing returned as yet so I had my crossed my fingers that someone in this Inkscape English-speaking community might have encountered the issue and be able to guide me in my mother tongue:-)

Let me put it to you/all what I'm trying to do. I want to create tooltip/mouse rollovers on parts of an .svg image so that hover text displays to user with more info when they mouse over. I'm not a programmer so I don't know how to use Javascript or scripting languages to do it. Perhaps you or someone else in the community might know of another extension/way to do this... I'm looking for a front-end UI plugin to Inkscape. Thanks in advance.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby Moini » Tue May 16, 2017 3:51 am

Sorry for deleting my post, but it didn't work when I tested. I've found another way.
(this is for adding a title to SVG objects when you do not care about styling of the tooltip - if you do, there are ways to add CSS, or you can use javascript, indeed. What I haven't tested yet is whether it works when you put this into an <img> tag. It works standalone (when you only open the SVG in the browser).

1. Select element
2. Open XML editor
3. Add a new node to the SVG. Name it

Code: Select all

svg:title

4. Add a text node to that node. Enter your hover text.
5. Move the title node into the object that you want to have that hover text.

Save file.
Open with web browser. Hover.

Bildschirmfoto_2017-05-15_19-53-21.png
Bildschirmfoto_2017-05-15_19-53-21.png (75.88 KiB) Viewed 1259 times
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby tylerdurden » Tue May 16, 2017 4:00 am

sineadco wrote:I want to create tooltip/mouse rollovers on parts of an .svg image so that hover text displays to user with more info when they mouse over. I'm not a programmer so I don't know how to use Javascript or scripting languages to do it.

If you download and open this svg in a browser, the hover will show the title.
https://dl.dropbox.com/s/5sfoujothrsm6u7/HoverTip.svg

SetTitle.png
SetTitle.png (19.83 KiB) Viewed 1258 times

Open the object properties panel for an object and enter info in the title field, then click "Set"

Depending how you embed in a web page, it might need some extra work.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby Moini » Tue May 16, 2017 5:54 am

Ah, Inkscape even provides a pre-made way for this. Didn't know - thanks, @tylerdurden :) (at least I now know how to do it manually...)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

sineadco
Posts: 3
Joined: Mon May 15, 2017 6:21 pm

Re: XIA 2.2 Extension won't work - Exception in Tkinter callback

Postby sineadco » Tue May 16, 2017 11:16 pm

Cheers @tylerdurden @Moini, thanks for steering me straight!


Return to “Help with using Inkscape”