IDE: Fixed About dialog exception on Windows, and typo in about dialog's content.
--- a/BeremizIDE.py Tue Aug 16 23:42:42 2022 +0200
+++ b/BeremizIDE.py Wed Aug 17 15:55:56 2022 +0200
@@ -969,7 +969,7 @@
info = version.GetAboutDialogInfo(info)
info.Name = "Beremiz"
info.Description = _("Open Source framework for automation, "
- "implemented IEC 61131 IDE with constantly growing set of extensions "
+ "implementing IEC 61131 IDE with constantly growing set of extensions "
"and flexible PLC runtime.")
info.Icon = wx.Icon(Bpath("images", "about_brz_logo.png"), wx.BITMAP_TYPE_PNG)
--- a/dialogs/AboutDialog.py Tue Aug 16 23:42:42 2022 +0200
+++ b/dialogs/AboutDialog.py Wed Aug 17 15:55:56 2022 +0200
@@ -53,7 +53,8 @@
image = None
if self.info.Icon:
- bitmap = wx.BitmapFromIcon(self.info.Icon)
+ bitmap = wx.Bitmap()
+ bitmap.CopyFromIcon(self.info.Icon)
image = wx.StaticBitmap(self, bitmap=bitmap)
name = wx.StaticText(self, label="%s %s" % (info.Name, info.Version))