--- a/BeremizIDE.py Fri Sep 10 14:42:46 2021 +0200
+++ b/BeremizIDE.py Fri Sep 10 14:44:20 2021 +0200
@@ -625,6 +625,7 @@
if self.CTR is None or self.CheckSaveBeforeClosing(_("Close Application")):
self.CTR.KillDebugThread()
--- a/svghmi/svghmi.py Fri Sep 10 14:42:46 2021 +0200
+++ b/svghmi/svghmi.py Fri Sep 10 14:44:20 2021 +0200
@@ -294,14 +294,19 @@
+if wx.Platform == '__WXMSW__': + browser_launch_cmd="cmd.exe /c 'start msedge {url}'" + browser_launch_cmd="chromium {url}" XSD = """<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="SVGHMI">
- <xsd:attribute name="OnStart" type="xsd:string" use="optional" default="chromium {url}"/>
- <xsd:attribute name="OnStop" type="xsd:string" use="optional" default="echo 'please close chromium window at {url}'"/>
- <xsd:attribute name="OnWatchdog" type="xsd:string" use="optional" default="echo 'Watchdog for {name} !'"/>
+ <xsd:attribute name="OnStart" type="xsd:string" use="optional" default="%s"/> + <xsd:attribute name="OnStop" type="xsd:string" use="optional" default=""/> + <xsd:attribute name="OnWatchdog" type="xsd:string" use="optional" default=""/> <xsd:attribute name="EnableWatchdog" type="xsd:boolean" use="optional" default="false"/>
<xsd:attribute name="WatchdogInitial" use="optional" default="30">
@@ -333,7 +338,7 @@
EditorType = SVGHMIEditor