You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wxPython version & source: wx.version: 4.1.1a1.dev4761+bda5fbef msw (phoenix) wxWidgets 3.1.4 Python version & source: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
Description of the problem:
Running this popped up lingering Deprecation warnings. py -3 -X dev AUI.py
This should be run on all demo files to attempt to clean up the rest of them in the library files.
Most of what is here appears to be integer division warnings, tho there are some other deprecations also.
C:\wxPython-demo-4.1.1a1.dev4761+bda5fbef\demo\agw>py -3 -X dev AUI.py
wx\lib\agw\aui\tabart.py:784: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect = wx.Rect(in_rect.x + in_rect.width - bmp.GetWidth(),
wx\lib\agw\aui\tabart.py:778: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.SetY(((in_rect.y + in_rect.height)/2) - (bmp.GetHeight()/2))
wx\lib\agw\aui\tabart.py:475: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
r.SetHeight(r.GetHeight()/2)
wx\lib\agw\aui\tabart.py:554: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawBitmap(pagebitmap,
wx\lib\agw\aui\tabart.py:589: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawLabel(draw_text, wx.Rect(text_offset, ypos, rectx, recty))
wx\lib\agw\aui\tabart.py:613: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect = wx.Rect(tab_x + tab_width - close_button_width - 1,
demo\agw\AUI.py:814: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
return wx.Colour(r, g, b)
wx\lib\agw\aui\auibook.py:3455: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
new_split_size.x /= 2
wx\lib\agw\aui\auibook.py:3456: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
new_split_size.y /= 2
demo\agw\AUI.py:1055: DeprecationWarning: Menu.Append() is deprecated
perspectives_menu.Append(wx.ID_ANY, "Frame Perspectives", self._perspectives_menu)
demo\agw\AUI.py:1056: DeprecationWarning: Menu.Append() is deprecated
perspectives_menu.Append(wx.ID_ANY, "AuiNotebook Perspectives", self._nb_perspectives_menu)
demo\agw\AUI.py:1058: DeprecationWarning: Menu.Append() is deprecated
perspectives_menu.Append(wx.ID_ANY, "Docking Guides", guides_menu)
demo\agw\AUI.py:1077: DeprecationWarning: Menu.Append() is deprecated
action_menu.Append(wx.ID_ANY, "Request User Attention For", attention_menu)
wx\lib\agw\aui\auibar.py:1506: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
bmp_rect = wx.Rect(bmp_x, bmp_y, bmp_width, bmp_height)
wx\lib\agw\aui\auibar.py:1507: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
text_rect = wx.Rect(text_x, text_y, text_width, text_height)
wx\lib\agw\aui\auibar.py:1267: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.x += (rect.width/2)
wx\lib\agw\aui\auibar.py:1270: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.y += (rect.height/2) - (new_height/2)
wx\lib\agw\aui\auibar.py:1271: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.height = new_height
wx\lib\agw\aui\auibar.py:1358: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawBitmap(self._overflow_bmp, x, y, True)
wx\lib\agw\aui\auibar.py:1131: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawBitmap(dropbmp, dropbmp_x, dropbmp_y, True)
wx\lib\agw\aui\auibar.py:985: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawText(item.GetLabel(), text_x, text_y)
wx\lib\agw\aui\auibar.py:1275: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.y += (rect.height/2)
wx\lib\agw\aui\auibar.py:1278: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.x += (rect.width/2) - (new_width/2)
wx\lib\agw\aui\auibar.py:1279: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rect.width = new_width
wx\lib\agw\aui\tabart.py:498: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
r.height /= 2
wx\lib\agw\aui\tabart.py:573: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
if control.GetPosition() != wx.Point(text_offset+1, ypos):
wx\lib\agw\aui\tabart.py:574: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
control.SetPosition(wx.Point(text_offset+1, ypos))
demo\agw\AUI.py:829: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
gradientRect.SetHeight(gradientRect.GetHeight()/2)
demo\agw\AUI.py:832: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rc1 = wx.Rect(x, y, width, height/2)
demo\agw\AUI.py:848: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
rc3 = wx.Rect(x, y+height/2, width, height/2)
wx\lib\agw\aui\auibar.py:990: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawRotatedText(item.GetLabel(), text_x, text_y, 270)
wx\lib\agw\aui\auibar.py:1133: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
dc.DrawBitmap(wx.Bitmap(dropbmp.ConvertToImage().Rotate90(item.GetOrientation() == AUI_TBTOOL_VERT_CLOCKWISE)),
The text was updated successfully, but these errors were encountered:
wxPython version & source: wx.version: 4.1.1a1.dev4761+bda5fbef msw (phoenix) wxWidgets 3.1.4
Python version & source: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
Description of the problem:
Running this popped up lingering Deprecation warnings.
py -3 -X dev AUI.py
This should be run on all demo files to attempt to clean up the rest of them in the library files.
Most of what is here appears to be integer division warnings, tho there are some other deprecations also.
The text was updated successfully, but these errors were encountered: