IDE: Fixed About dialog exception on Windows, and typo in about dialog's content. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 17 Aug 2022 15:55:56 +0200
branchwxPython4
changeset 3586 cbc6a6ccd52e
parent 3585 efdefbad49eb
child 3587 295f21f9c581
IDE: Fixed About dialog exception on Windows, and typo in about dialog's content.
BeremizIDE.py
dialogs/AboutDialog.py
--- 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))