wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.21k stars 509 forks source link

other float-int TypeError with python 3.10+ in wx.lib.agw.flatnotebook #2504

Open mprosperi opened 4 months ago

mprosperi commented 4 months ago

Operating system: win10 wxPython version & source: stock wheel Python version & source: 3.10+

Description of the problem: TypeError exceptions due to changed (missing) float conversions with python 3.10+

line 3730 in wx/lib/agw/flatnotebook.py: pc._ImageList.Draw(pc._pagesInfoVec[tabIdx].GetImageIndex(), dc, posx + imageXOffset, imageYCoord, wx.IMAGELIST_DRAW_TRANSPARENT, True)

line 3858: pc._pagesInfoVec[i].SetSize(wx.Size(tabWidth, tabHeight))