wxpython ctrl+x shortcut does not work -


i'm running wxpython app in windows 7. reason when press ctrl+x on keyboard, frame not close.

however if change binding text='quit\tctrl+x' text='quit\tctrl+q' or other character x, frame closes.

does ctrl+x have special significance in wxpython preventing frame being closed?

import os import wx class mainme(wx.frame):     def __init__(self):         wx.frame.__init__(self, parent=none, size=(300, 300), title = 'test frame')         wx.textctrl(parent=self, style =wx.te_multiline | wx.te_no_vscroll)         self.createstatusbar()          filemenu = wx.menu()          exitid, aboutid = wx.newid(), wx.newid()         menuabout = filemenu.append(id=aboutid, text='about\tctrl+a', help='more information')         menuexit = filemenu.append(id=exitid, text='quit\tctrl+x', help="close")          menubar = wx.menubar()         menubar.append(filemenu, title='file')         self.setmenubar(menubar)          self.bind(wx.evt_menu, self.onabout, source=menuabout)         self.bind(wx.evt_menu, self.onexit, source=menuexit)          self.show()      def onabout(self, e):         dlg = wx.messagedialog( self, "a small text editor", "about sample editor", wx.ok)         dlg.showmodal()         dlg.destroy()      def onexit(self, e):         self.close(true)  = wx.app() f = mainme() a.mainloop() 

ctrl+x while text ctrl has focus shortcut cutting text, along ctrl+c copy & ctrl+v paste.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -