Browse Source

wxGUI: set focus on prompt

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40289 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 năm trước cách đây
mục cha
commit
1557f7a80a
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 1
      gui/wxpython/gui_modules/prompt.py
  2. 2 1
      gui/wxpython/wxgui.py

+ 1 - 1
gui/wxpython/gui_modules/prompt.py

@@ -10,7 +10,7 @@ Classes:
  - GPromptPopUp
  - GPromptSTC
 
-(C) 2009 by the GRASS Development Team
+(C) 2009-2010 by the GRASS Development Team
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
 for details.

+ 2 - 1
gui/wxpython/wxgui.py

@@ -357,7 +357,8 @@ class GMFrame(wx.Frame):
         if page == self.goutput.pageid:
             # remove '(...)'
             self.notebook.SetPageText(page, _("Command console"))
-        
+            self.goutput.cmd_prompt.SetSTCFocus(True)
+            
         event.Skip()
 
     def OnCBPageClosed(self, event):