Opened 6 years ago
Last modified 6 years ago
#3711 new defect
d.rast.edit GUI only starts with --ui
Reported by: | hellik | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | Display | Version: | svn-releasebranch76 |
Keywords: | GUI | Cc: | |
CPU: | Unspecified | Platform: | MSWindows |
Description
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)
Change History (3)
Note:
See TracTickets
for help on using tickets.
Any hint how to get
--ui
intoRunCommand()
?Apparently an API change would be needed for
make_command()
in lib/python/script/core.py