[GRASS-dev] [GRASS GIS] #725: wxGUI: bind ctrl-q to exit

GRASS GIS trac at osgeo.org
Wed Aug 19 07:58:32 EDT 2009


#725: wxGUI: bind ctrl-q to exit
-------------------------+--------------------------------------------------
 Reporter:  hamish       |       Owner:  grass-dev at lists.osgeo.org
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  6.5.0                    
Component:  wxGUI        |     Version:  svn-develbranch6         
 Keywords:  menu         |    Platform:  All                      
      Cpu:  All          |  
-------------------------+--------------------------------------------------
 Hi,

 it would be nice if ctrl-q exited the wxGUI. (with are you sure? as per
 preferences)

 I bits about just adding it as a "\tCtrl-Q" in the menu item label, but
 that doesn't seem to work (xml/i18n?).

 in the code you can apparently do like:
 {{{
  self.SetAcceleratorTable(wxAcceleratorTable([(wxACCEL_CTRL, ord('Q'),
 ID_EXIT)]))
 }}}
 but I've not figured out how to get that to work.


 see
  http://wiki.wxpython.org/SmallApp    (line 76)
  http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3347637


 ... and other accels as useful. (Especially in the vDigit'izer)


 thanks,
 Hamish

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


More information about the grass-dev mailing list