[GRASS-dev] [GRASS GIS] #3934: wxGUI: Python error on "Set color table interactively" tool

#3934: wxGUI: Python error on "Set color table interactively" tool
-----------------------------+---------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Keywords: python3, colors | CPU: Unspecified
Platform: Unspecified |
-----------------------------+---------------------------------
When using right mouse menu on a raster map to run the interactive color
tool, the following error appears:

{{{
Traceback (most recent call last):
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-
linux-gnu/gui/wxpython/modules/colorrules.py", line 981, in
OnSelectionInput

'max': self.properties['max']})
TypeError
:
%d format: a number is required, not NoneType
/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/modules/colorrules.py:1986:
wxPyDeprecationWarning: Call to deprecated item
BitmapFromImage. Use :class:`wx.Bitmap` instead
   bitmap = wx.BitmapFromImage(img)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3934&gt;
GRASS GIS <https://grass.osgeo.org>

#3934: wxGUI: Python error on "Set color table interactively" tool
--------------------------+---------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.2
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: python3, colors
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------

Comment (by annakrat):

I can't reproduce this error, only the wx.Bitmap part which is fixed in
https://github.com/OSGeo/grass/pull/230.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3934#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3934: wxGUI: Python error on "Set color table interactively" tool
--------------------------+---------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.2
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: python3, colors
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------

Comment (by neteler):

Replying to [comment:2 annakrat]:
> I can't reproduce this error, only the wx.Bitmap part which is fixed in
https://github.com/OSGeo/grass/pull/230.

Thanks, this PR fixes the issue and brings the "Set color table
interactively" tool back.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3934#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3934: wxGUI: Python error on "Set color table interactively" tool
--------------------------+---------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.2
Component: wxGUI | Version: git-releasebranch78
Resolution: fixed | Keywords: python3, colors
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => fixed

Comment:

Merged and backported.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3934#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>