# HG changeset patch # User Edouard Tisserant # Date 1568882499 -7200 # Node ID fbdd0fd8ee4f4680deff9f8f5f0c12779935362b # Parent e468f18df20038e35f098122814c0e79169e737b SVGHMI: gui.svg -> svghmi.svg diff -r e468f18df200 -r fbdd0fd8ee4f svghmi/svghmi.py --- a/svghmi/svghmi.py Thu Sep 19 09:01:49 2019 +0200 +++ b/svghmi/svghmi.py Thu Sep 19 10:41:39 2019 +0200 @@ -266,8 +266,7 @@ def _getSVGpath(self, project_path=None): if project_path is None: project_path = self.CTNPath() - # define name for SVG file containing gui layout - return os.path.join(project_path, "gui.svg") + return os.path.join(project_path, "svghmi.svg") def OnCTNSave(self, from_project_path=None): @@ -280,7 +279,6 @@ # invoke inskscape -S, csv-parse output, produce elements InkscapeGeomColumns = ["Id", "x", "y", "w", "h"] - # TODO : move following line to __init__ inkpath = get_inkscape_path() svgpath = self._getSVGpath() _status, result, _err_result = ProcessLogger(None, diff -r e468f18df200 -r fbdd0fd8ee4f tests/svghmi/svghmi_0@svghmi/gui.svg --- a/tests/svghmi/svghmi_0@svghmi/gui.svg Thu Sep 19 09:01:49 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,117 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - =HMI= -role = Page; -name = "Home"; - - - =HMI= -role = Input; -path = "/PRESSURETARGET"; -/* Don't forget to press the "Set" button ! */8888 - =HMI= -role = Display; -path = "/PUMP/PRESSURE"; -/* Don't forget to press the "Set" button ! */8888 - SetPoint - Actual - diff -r e468f18df200 -r fbdd0fd8ee4f tests/svghmi/svghmi_0@svghmi/svghmi.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/svghmi/svghmi_0@svghmi/svghmi.svg Thu Sep 19 10:41:39 2019 +0200 @@ -0,0 +1,117 @@ + + + + + + + + image/svg+xml + + + + + + + + + =HMI= +role = Page; +name = "Home"; + + + =HMI= +role = Input; +path = "/PRESSURETARGET"; +/* Don't forget to press the "Set" button ! */8888 + =HMI= +role = Display; +path = "/PUMP/PRESSURE"; +/* Don't forget to press the "Set" button ! */8888 + SetPoint + Actual +