# HG changeset patch # User Edouard Tisserant # Date 1709842785 -3600 # Node ID 394c130196b04a621e0fd20cb14f9855deb40462 # Parent d47fe28d799a4c0684b7f4fb67f34a8df576cc24# Parent f831ff63ca6ece112e832d58e491b85da2b79d59 merge diff -r d47fe28d799a -r 394c130196b0 BeremizIDE.py --- a/BeremizIDE.py Thu Mar 07 16:37:02 2024 +0100 +++ b/BeremizIDE.py Thu Mar 07 21:19:45 2024 +0100 @@ -45,7 +45,7 @@ from editors.TextViewer import TextViewer from editors.ResourceEditor import ConfigurationEditor, ResourceEditor from editors.DataTypeEditor import DataTypeEditor -from util.paths import Bpath +from util.paths import Bpath, ThirdPartyPath from util.MiniTextControler import MiniTextControler from util.BitmapLibrary import GetBitmap from controls.LogViewer import LogViewer @@ -980,6 +980,10 @@ info = wx.adv.AboutDialogInfo() info = version.GetAboutDialogInfo(info) info.Name = "Beremiz" + with open(ThirdPartyPath("revisions.txt")) as f: + revisions=f.read() + info.SetVersion(info.GetVersion(), longVersion=revisions) + info.Description = _("Open Source framework for automation, " "implementing IEC 61131 IDE with constantly growing set of extensions " "and flexible PLC runtime.") diff -r d47fe28d799a -r 394c130196b0 PLCOpenEditor.py --- a/PLCOpenEditor.py Thu Mar 07 16:37:02 2024 +0100 +++ b/PLCOpenEditor.py Thu Mar 07 21:19:45 2024 +0100 @@ -357,7 +357,7 @@ def OnAboutMenu(self, event): info = wx.adv.AboutDialogInfo() - info = version.GetAboutDialogInfo() + info = version.GetAboutDialogInfo(info) info.Name = "PLCOpenEditor" info.Description = _("PLCOpenEditor is part of Beremiz project.\n\n" "Beremiz is an ") + info.Description diff -r d47fe28d799a -r 394c130196b0 dialogs/AboutDialog.py --- a/dialogs/AboutDialog.py Thu Mar 07 16:37:02 2024 +0100 +++ b/dialogs/AboutDialog.py Thu Mar 07 21:19:45 2024 +0100 @@ -62,6 +62,7 @@ description.Wrap(400) copyright = wx.StaticText(self, label=info.Copyright) url = HyperLinkCtrl(self, label=info.WebSite[0], URL=info.WebSite[1]) + long_version = wx.StaticText(self, label=info.GetLongVersion()) font = name.GetClassDefaultAttributes().font font.SetWeight(wx.FONTWEIGHT_BOLD) @@ -84,6 +85,7 @@ sizer.Add(description, flag=wx.CENTER | wx.BOTTOM, border=10) sizer.Add(copyright, flag=wx.CENTER | wx.BOTTOM, border=10) sizer.Add(url, flag=wx.CENTER | wx.BOTTOM, border=15) + sizer.Add(long_version, flag=wx.CENTER | wx.BOTTOM, border=10) sizer.Add(btnSizer, flag=wx.CENTER | wx.BOTTOM, border=5) container = wx.BoxSizer(wx.VERTICAL) diff -r d47fe28d799a -r 394c130196b0 version.py --- a/version.py Thu Mar 07 16:37:02 2024 +0100 +++ b/version.py Thu Mar 07 21:19:45 2024 +0100 @@ -185,7 +185,7 @@ return info -app_version = "1.4-beta2" +app_version = "1.4" if __name__ == "__main__": print(app_version)