Problem in initiating UltimateListCtrl

Hi,

I am tiring to instantiate an UltimateListCtrl in WxPython 3.0.0 python 3.4

I get the following error

File “D:\Artificial Intelligence\Python\Projects\ArtificialIntelligenceVxPython\ArtificialIntelligenceVxPython\UserInterface\SelectDialog.py”, line 31, in InitUI2
> wx.LC_HRULES)
File “D:\Anaconda\envs\Python34\lib\site-packages\wx\lib\agw\ultimatelistctrl.py”, line 10863, in init
self._mainWin = UltimateListMainWindow(self, wx.ID_ANY, wx.Point(0, 0), wx.DefaultSize, style, agwStyle)
File “D:\Anaconda\envs\Python34\lib\site-packages\wx\lib\agw\ultimatelistctrl.py”, line 6030, in init
self.Init()
File “D:\Anaconda\envs\Python34\lib\site-packages\wx\lib\agw\ultimatelistctrl.py”, line 6126, in Init
normalFont.GetFaceName(), normalFont.GetEncoding())
TypeError: Font(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 1 has unexpected type ‘int’
overload 3: argument 1 has unexpected type ‘int’
overload 4: argument 4 has unexpected type ‘FontStyle’
overload 5: argument 1 has unexpected type ‘int’
overload 6: argument 1 has unexpected type ‘int’
overload 7: argument 1 has unexpected type ‘int’

The method where the UltimateListCtrl is activated is InitUI2 and it is called from init

(The rest of the code is not activated)

My code is attached

Thanks,

Ilan

SelectDialog.py (6.93 KB)

It looks like there was recently a fix made in UltimateListCtrl:

Please try again with the latest code.

···

On Sun, 23 Oct 2016, אילן הינדי wrote:

Hi,
I am tiring to instantiate an UltimateListCtrl in WxPython 3.0.0 python 3.4
I get the following error

File "D:\ArtificialIntelligence\Python\Projects\ArtificialIntelligenceVxPython\ArtificialIntel
ligenceVxPython\UserInterface\SelectDialog.py", line 31, in InitUI2
> wx.LC_HRULES)
File"D:\Anaconda\envs\Python34\lib\site-packages\wx\lib\agw\ultimatelistctrl.py
", line 10863, in __init__
self._mainWin = UltimateListMainWindow(self, wx.ID_ANY, wx.Point(0, 0),
wx.DefaultSize, style, agwStyle)
File"D:\Anaconda\envs\Python34\lib\site-packages\wx\lib\agw\ultimatelistctrl.py
", line 6030, in __init__
self.Init()
File"D:\Anaconda\envs\Python34\lib\site-packages\wx\lib\agw\ultimatelistctrl.py
", line 6126, in Init
normalFont.GetFaceName(), normalFont.GetEncoding())
TypeError: Font(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 1 has unexpected type 'int'
overload 3: argument 1 has unexpected type 'int'
overload 4: argument 4 has unexpected type 'FontStyle'
overload 5: argument 1 has unexpected type 'int'
overload 6: argument 1 has unexpected type 'int'
overload 7: argument 1 has unexpected type 'int'