Opened 5 years ago

Closed 5 years ago

#3895 closed defect (fixed)

g.gui.animation deprecation messages

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.8.1
Component: wxGUI Version: git-releasebranch78
Keywords: python3, g.gui.animation Cc:
CPU: Unspecified Platform: Unspecified

Description

When calling G7:g.gui.animation from terminal and creating the animation, I get the following message:

/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/provider.py:523: wxPyDeprecationWarning: Call to deprecated item BitmapFromImage. Use :class:`wx.Bitmap` instead
  wx.Image(filename))

and when clicking over Export animation, I get something similar:

 /home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/dialogs.py:1088: wxPyDeprecationWarning: Call to deprecated item EmptyImage. Use :class:`Image` instead.
  filetype, ltype = GetImageHandlers(wx.EmptyImage(10, 10))

Change History (5)

comment:1 by veroandreo, 5 years ago

After the backport, I tested the animation export. It works now, but I get this new message in the terminal:

/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/controller.py:554: wxPyDeprecationWarning: Call to deprecated item EmptyImage. Use :class:`Image` instead.
  image = wx.EmptyImage(*size)
/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/controller.py:571: wxPyDeprecationWarning: Call to deprecated item ImageFromBitmap. Use bitmap.ConvertToImage instead.
  im = wx.ImageFromBitmap(lastBitmaps[i])

comment:2 by neteler, 5 years ago

Keywords: python3 added

comment:3 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:5 by annakrat, 5 years ago

Resolution: fixed
Status: newclosed

Merged and backported.

Note: See TracTickets for help on using tickets.