Hello,
I started to upgrade Pythoncard for python3.
All components work on linux (64 bits, Ubuntu 180.4 and 16.04, gtk2 or gtk3, python 3.5 and 3.6 and 3.7) except wxImageButton .
It works properly on windows seven.
Message:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/PythonCard/model.py”, line 372, in OnInit
self._initBackgrounds(self.resource)
File “/usr/local/lib/python3.6/dist-packages/PythonCard/model.py”, line 365, in _initBackgrounds
bg = self.frameClass(None, bgRsrc)
File “/usr/local/lib/python3.6/dist-packages/PythonCard/model.py”, line 548, in init
self._initLayout(aBgRsrc.components)
File “/usr/local/lib/python3.6/dist-packages/PythonCard/model.py”, line 801, in _initLayout
self.components[rsrc.name] = rsrc
File “/usr/local/lib/python3.6/dist-packages/PythonCard/model.py”, line 73, in setitem
control = component.ComponentFactory().createComponent(self.parent, self.parent.panel, item)
File “/usr/local/lib/python3.6/dist-packages/PythonCard/component.py”, line 340, in createComponent
component = clazz(aParent, aResource)
File “/usr/local/lib/python3.6/dist-packages/PythonCard/components/imagebutton.py”, line 56, in init
wx.BitmapButton.init(self, parent, id, self._bitmap.getBits(),pos, size, style, validator, name)
TypeError: Control(): arguments did not match any overloaded call:
overload 1: argument 3 has unexpected type ‘Bitmap’
overload 2: too many arguments
OnInit returned false, exiting…
Segmentation fault (core dumped)
Pause …
The third parameters is not good: ‘Bitmap’.
Thanks a lot.
Philippe DALET