2017-01-26 20 views
0

從Python 2.5的移動wxPython應用程序到Python 3.5和得到這個錯誤wxPyDeprecationWarning在Python 3.5(模塊「寬x」有沒有屬性「Image_GetHandlers」)

AttributeError: module 'wx' has no attribute 'Image_GetHandlers'

經過Phoenix docs但有一個在這個步伐缺少一個字方法。 你是否知道任何已知的工作範圍來替換Image_GetHandlers?

Python代碼:

handler_types = [handler.Type for handler in wx.Image_GetHandlers()] 
wx.BITMAP_TYPE_SVG = max(handler_types) + 1 
wx.BITMAP_TYPE_SVGZ = wx.BITMAP_TYPE_SVG + 1 

回答

相關問題