Hi all,
how can i to fix this sample code ? See attachment.
I use python 3.6.3 and wxPython Phoenix 4.0.0b2.
Small precision, I do not master python 3.x. ERROR :
File “C:\wx.ListCtrl virtual.py”, line 80, in
app.MainLoop()
File “C:\Users\toto\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\wx\core.py”, line 2085, in MainLoop
rv = wx.PyApp.MainLoop(self)
File “C:\wx.ListCtrl virtual.py”, line 60, in Sort
self.items.sort(lambda x,y: cmp(x[idx],y[idx]))
builtins.TypeError: must use keyword argument for key function
how can i to fix this sample code ? See attachment.
I use python 3.6.3 and wxPython Phoenix 4.0.0b2.
Small precision, I do not master python 3.x. ERROR :
File “C:\wx.ListCtrl virtual.py”, line 80, in
app.MainLoop()
File “C:\Users\toto\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\wx\core.py”, line 2085, in MainLoop
rv = wx.PyApp.MainLoop(self)
File “C:\wx.ListCtrl virtual.py”, line 60, in Sort
self.items.sort(lambda x,y: cmp(x[idx],y[idx]))
builtins.TypeError: must use keyword argument for key function
—
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.