From 5adc19bffa61e9308c66ec4e79d7694b9846a6dc Mon Sep 17 00:00:00 2001 From: Erkan Ozgur Yilmaz Date: Wed, 5 Jun 2024 17:58:04 +0100 Subject: [PATCH] [#367] Fixed `DisplayCAL.wxfixes` for Python 3.12. --- DisplayCAL/wxfixes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisplayCAL/wxfixes.py b/DisplayCAL/wxfixes.py index 474b447a..36aef24d 100644 --- a/DisplayCAL/wxfixes.py +++ b/DisplayCAL/wxfixes.py @@ -139,10 +139,10 @@ def IconFromBitmap(bmp): wx.IconFromBitmap = wx.Icon wx.ImageFromStream = wx.Image wx.ListCtrl.InsertStringItem = lambda self, index, label: self.InsertItem( - index, label + int(index), str(label) ) wx.ListCtrl.SetStringItem = lambda self, index, col, label: self.SetItem( - index, col, label + int(index), int(col), str(label) ) wx.Menu.RemoveItem = lambda self, item: self.Remove(item) wx.NamedColour = wx.Colour