Re: Re: WxImageButton on Linux

Robin Dunn <[email protected]> Fri, 19 Apr 2019 17:06:32 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
------=_Part_71_676628688.1555718792362
Content-Type: multipart/alternative; 
	boundary="----=_Part_72_470884138.1555718792362"

------=_Part_72_470884138.1555718792362
Content-Type: text/plain; charset="UTF-8"

On Friday, April 19, 2019 at 12:53:40 PM UTC-7, philippe DALET wrote:
>
> Yes, self._bitmap.getBits() is returning a wx.Bitmap.
> It runs properly on windows. It seems that it expects another parameter. 
>
> Is it possible to debug with python, then in C with an IDE on linux ?
>


The C++ wrapper code where that exception is raised is identical on each 
platform and it hasn't yet gotten to any platform-dependent wxWidgets code, 
it's just type-checking the parameters to  decide which wxBitmapButton 
constructor to call. So if it works on one platform and not another then it 
must be differences in the inputs from the Python side of things.

Ah, I just noticed something odd:

>  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:

Somehow it is not trying to call wx.BitmapButton.__init__ but wx.Control's 
__init__. Does PythonCard do any monkey-patching or something that could be 
replacing wx.BitmapButton with wx.Control?

--
Robin

 

-- 
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_72_470884138.1555718792362
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Friday, April 19, 2019 at 12:53:40 PM UTC-7, philippe D=
ALET wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left=
: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">Ye=
s, self._bitmap.getBits() is returning a wx.Bitmap.<div>It runs properly on=
 windows. It seems that it expects another parameter.=C2=A0</div><div><br><=
/div><div>Is it possible to debug with python, then in C with an IDE on lin=
ux ?</div></div></blockquote><div><br></div><div><br></div><div>The C++ wra=
pper code where that exception is raised is identical on each platform and =
it hasn&#39;t yet gotten to any platform-dependent wxWidgets code, it&#39;s=
 just type-checking the parameters to=C2=A0 decide which wxBitmapButton con=
structor to call. So if it works on one platform and not another then it mu=
st be differences in the inputs from the Python side of things.</div><div><=
br></div><div>Ah, I just noticed something odd:</div><div><br></div><div><d=
iv>&gt;=C2=A0 File &quot;/usr/local/lib/python3.6/<wbr>dist-packages/Python=
Card/<wbr>components/imagebutton.py&quot;, line 56, in __init__</div><div>&=
gt;=C2=A0 =C2=A0 =C2=A0wx.BitmapButton.__init__(self, parent, id, self._bit=
map.getBits(),pos, size, style, validator, name)</div><div>&gt; TypeError: =
<b><font color=3D"#ff0000">Control():</font></b> arguments did not match an=
y overloaded call:</div></div><div><br></div><div>Somehow it is not trying =
to call wx.BitmapButton.__init__ but wx.Control&#39;s __init__. Does Python=
Card do any monkey-patching or something that could be replacing wx.BitmapB=
utton with wx.Control?</div><div><br></div><div>--</div><div>Robin</div><di=
v><br></div><div>=C2=A0</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_72_470884138.1555718792362--

------=_Part_71_676628688.1555718792362--