fix - TypeError: unhashable type: 'Colour' python3
authorGP Orcullo <kinsamanka@gmail.com>
Fri, 28 Oct 2022 17:42:47 +0800
branchpython3
changeset 3762 247599238b9d
parent 3761 479ba844ded8
child 3763 369c7569bf94
fix - TypeError: unhashable type: 'Colour'
graphics/GraphicCommons.py
--- 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