Re: Changing middleText of Speedometer

Tanmay Agrawal <[email protected]> Mon, 29 Aug 2022 21:26:14 +0530
Newsgroups gmane.comp.python.wxglade
Message-ID <CALF8AQP1Y-Dsyw8RpvuyFs2txCHT8DBK5VR3k-0yqD4x_kX+pg@mail.gmail.com>
Hi Mr. Dietmar,
Don't know why, this error wasn't coming to my terminal. The program was
giving no error, and the ticks of the speedometers were disappearing.

Now that I got to know the error, I figured out how to deal with it and the
issue is solved.

Thanks
Regards,
Tanmay

On Mon, Aug 29, 2022 at 4:33 PM Dietmar Schwertberger <
[email protected]> wrote:

> On 29.08.2022 07:04, Tanmay Agrawal wrote:
> > What can I do to solve this issue?
>
> Your code does not work, as you're calling SetMiddleText with a
> non-string value:
>
> Traceback (most recent call last):
>    File "D:\Python\Python36\lib\site-packages\wx\lib\agw\speedmeter.py",
> line 396, in OnSize
>      self.UpdateDrawing()
>    File "D:\Python\Python36\lib\site-packages\wx\lib\agw\speedmeter.py",
> line 412, in UpdateDrawing
>      self.Draw(dc)
>    File "D:\Python\Python36\lib\site-packages\wx\lib\agw\speedmeter.py",
> line 1044, in Draw
>      mw, mh, dummy, dummy = dc.GetFullTextExtent(middletext, middlefont)
> TypeError: DC.GetFullTextExtent(): argument 1 has unexpected type 'int'
>
> Regards,
>
> Dietmar
>
>
>
> _______________________________________________
> wxGlade-general mailing list
> wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/wxglade-general
>

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general