Closed yueranyuan closed 6 years ago
Travis CI fails: "TypeError: String or Unicode type required"
Ubuntu 18.04 also fails.
Bitmap call is not compatible with wxPython Classic.
Please check it!
I think the constructor was changed in wxPython >= 4.0 to allow for wxBitmap(width, height)
. Defaulting to prior behaviour for wxPython < 4.0
Thanks!
updates function names to get rid of 2 deprecation warnings:
pyscreenshot/plugins/wxscreen.py:24: wxPyDeprecationWarning: Call to deprecated item EmptyBitmap. Use :class:'wx.Bitmap' instead
pyscreenshot/plugins/wxscreen.py:28: wxPyDeprecationWarning: Call to deprecated item ImageFromBitmap. Use bitmap.ConvertToImage instead. myWxImage = wx.ImageFromBitmap(bmp)
wrap input to 1 function to fulfill the latest function argument of
frombytes
inPillow==5.2.0
to prevent error:TypeError: argument 1 must be string or read-only buffer, not bytearray