[GRASS-dev] [GRASS GIS] #3711: d.rast.edit GUI only starts with --ui

GRASS GIS trac at osgeo.org
Sat Dec 15 04:48:14 PST 2018


#3711: d.rast.edit GUI only starts with --ui
-----------------------+---------------------------------
 Reporter:  hellik     |      Owner:  grass-dev@…
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  7.6.0
Component:  Display    |    Version:  svn-releasebranch76
 Keywords:  GUI        |        CPU:  Unspecified
 Platform:  MSWindows  |
-----------------------+---------------------------------
 trying to start d.rast.edit in the wxGUI console, a message pops up the
 d.rast.edit isn't yet implemented in the wxGUI; just try to add it as a
 command layer instead.

 it come from frame.py:

 {{{
     def RunDisplayCmd(self, command):
         """Handles display commands.

         :param command: command in a list
         """
         if not self.currentPage:
             self.NewDisplay(show=True)
         # here should be the d.* commands which are not layers
         if command[0] == 'd.erase':
             # rest of d.erase is ignored
             self.GetLayerTree().DeleteAllLayers()
             return
         try:
             # display GRASS commands
             layertype = command2ltype[command[0]]
         except KeyError:
             GMessage(
                 parent=self, message=_(
                     "Command '%s' not yet implemented in the WxGUI. "
                     "Try adding it as a command layer instead.") %
                 command[0])
             return
 }}}
 ''
 d.rast.edit --ui'' open the GUI

 tested with

 {{{
 System Info
 GRASS version: 7.7.svn
 GRASS SVN revision: r73796
 Build date: 2018-12-14
 Build platform: x86_64-w64-mingw32
 GDAL: 2.3.2
 PROJ.4: 5.2.0
 GEOS: 3.7.0
 SQLite: 3.17.0
 Python: 2.7.14
 wxPython: 2.8.12.1
 Platform: Windows-10-10.0.17763 (OSGeo4W)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3711>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list