beremiz

fix - TypeError: unhashable type: 'Colour'
python3
2022-10-28, GP Orcullo
247599238b9d
Parents 479ba844ded8
Children 369c7569bf94
fix - TypeError: unhashable type: 'Colour'
--- a/graphics/GraphicCommons.py Fri Oct 28 17:26:50 2022 +0800
+++ b/graphics/GraphicCommons.py Fri Oct 28 17:42:47 2022 +0800
@@ -94,8 +94,8 @@
HIGHLIGHTCOLOR = wx.CYAN
# Define highlight types
-ERROR_HIGHLIGHT = (wx.Colour(255, 255, 0), wx.RED)
-SEARCH_RESULT_HIGHLIGHT = (wx.Colour(255, 165, 0), wx.WHITE)
+ERROR_HIGHLIGHT = (wx.Colour(255, 255, 0).GetIM(), wx.RED.GetIM())
+SEARCH_RESULT_HIGHLIGHT = (wx.Colour(255, 165, 0).GetIM(), wx.WHITE.GetIM())
# Define highlight refresh inhibition period in second
REFRESH_HIGHLIGHT_PERIOD = 0.1