--- a/plugins/svgui/svgui.py Mon Sep 01 14:40:51 2008 +0200
+++ b/plugins/svgui/svgui.py Tue Sep 02 12:21:58 2008 +0200
@@ -11,6 +11,7 @@
from FBD_Objects import *
from wxPopen import ProcessLogger
from wx.wxsvg import SVGDocument
@@ -156,6 +157,21 @@
self.logger.write_error("No such XML file: %s\n"%xmlpath)
+ def _StartInkscape(self): + svgfile = os.path.join(self.PlugPath(), "gui.svg") + if wx.Platform == '__WXMSW__': + popenargs.append(os.path.join(base_folder, "Inkscape", "inkscape.exe")) + popenargs.append("/usr/bin/inkscape") + if os.path.isfile(svgfile): + popenargs.append(svgfile) + subprocess.Popen(popenargs).pid {"bitmap" : os.path.join("images","HMIEditor"),
@@ -169,6 +185,10 @@
"tooltip" : "Import XML",
"method" : "_ImportXML"},
+ {"bitmap" : os.path.join("images","ImportSVG"), + "tooltip" : "Create HMI", + "method" : "_StartInkscape"},