WxImageButton on Linux

philippe DALET <[email protected]> Fri, 19 Apr 2019 05:53:12 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
------=_Part_175_1975763973.1555678392471
Content-Type: multipart/alternative; 
	boundary="----=_Part_176_1165964136.1555678392471"

------=_Part_176_1165964136.1555678392471
Content-Type: text/plain; charset="UTF-8"

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

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

------=_Part_176_1165964136.1555678392471
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>I started to upgrade Pythoncard =
for python3.</div><div>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)=C2=A0 except wxImageBu=
tton=C2=A0.</div><div>It works properly on windows seven.</div><div><br></d=
iv><div><br></div><div>Message:</div><div><br></div><div><div>Traceback (mo=
st recent call last):</div><div>=C2=A0 File &quot;/usr/local/lib/python3.6/=
dist-packages/PythonCard/model.py&quot;, line 372, in OnInit</div><div>=C2=
=A0 =C2=A0 self._initBackgrounds(self.resource)</div><div>=C2=A0 File &quot=
;/usr/local/lib/python3.6/dist-packages/PythonCard/model.py&quot;, line 365=
, in _initBackgrounds</div><div>=C2=A0 =C2=A0 bg =3D self.frameClass(None, =
bgRsrc)</div><div>=C2=A0 File &quot;/usr/local/lib/python3.6/dist-packages/=
PythonCard/model.py&quot;, line 548, in __init__</div><div>=C2=A0 =C2=A0 se=
lf._initLayout(aBgRsrc.components)</div><div>=C2=A0 File &quot;/usr/local/l=
ib/python3.6/dist-packages/PythonCard/model.py&quot;, line 801, in _initLay=
out</div><div>=C2=A0 =C2=A0 self.components[rsrc.name] =3D rsrc</div><div>=
=C2=A0 File &quot;/usr/local/lib/python3.6/dist-packages/PythonCard/model.p=
y&quot;, line 73, in __setitem__</div><div>=C2=A0 =C2=A0 control =3D compon=
ent.ComponentFactory().createComponent(self.parent, self.parent.panel, item=
)</div><div>=C2=A0 File &quot;/usr/local/lib/python3.6/dist-packages/Python=
Card/component.py&quot;, line 340, in createComponent</div><div>=C2=A0 =C2=
=A0 component =3D clazz(aParent, aResource)</div><div>=C2=A0 File &quot;/us=
r/local/lib/python3.6/dist-packages/PythonCard/components/imagebutton.py&qu=
ot;, line 56, in __init__</div><div>=C2=A0 =C2=A0 wx.BitmapButton.__init__(=
self, parent, id, self._bitmap.getBits(),pos, size, style, validator, name)=
</div><div>TypeError: Control(): arguments did not match any overloaded cal=
l:</div><div>=C2=A0 overload 1: argument 3 has unexpected type &#39;Bitmap&=
#39;</div><div>=C2=A0 overload 2: too many arguments</div><div>OnInit retur=
ned false, exiting...</div><div>Segmentation fault (core dumped)</div><div>=
Pause ...=C2=A0</div></div><div><br></div><div><br></div><div>The third par=
ameters is not good: &#39;Bitmap&#39;.</div><div><br></div><div>Thanks a lo=
t.</div><div><br></div><div>Philippe DALET</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-dev&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxPyth=
[email protected]</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_176_1165964136.1555678392471--

------=_Part_175_1975763973.1555678392471--