Re: Changing middleText of Speedometer
Dietmar Schwertberger <[email protected]> Mon, 29 Aug 2022 13:03:18 +0200
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] https://lists.sourceforge.net/lists/listinfo/wxglade-general