I work on python 3.10 and installed latest version of wxpython(4.2.1).But I got stuck in one method [HandleColumnCheck(HandleColumnCheck(0, wx.Point(10, 10))] which is inbuild function of ultimatelistctrl.py file.
File “C:\Users\asdf\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\lib\agw\ultimatelistctrl.py”, line 5606, in HandleColumnCheck
rect = wx.Rect(theX + HEADER_OFFSET_X, HEADER_OFFSET_Y + (h - 4 - iy)/2, ix, iy)
TypeError: Rect(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type ‘float’
overload 3: argument 1 has unexpected type ‘int’
overload 4: argument 1 has unexpected type ‘int’
overload 5: argument 1 has unexpected type ‘int’
overload 6: argument 1 has unexpected type ‘int’
Traceback (most recent call last):
it work if I add // in place of / in line (wx.Rect(theX + HEADER_OFFSET_X, HEADER_OFFSET_Y + (h - 4 - iy)/2, ix, iy)).but as we know that ultimatelistctrl.py is readonly library file of wxpython. and I cann’t do any changes there from user end.
Any suggestion would be great appreciation.