wx.TE_PROCESS_ENTER & AutoComplete

14 views
Skip to first unread message

doswfpga

unread,
Feb 18, 2018, 11:23:03 PM2/18/18
to wxPython-users

Hello,

I have an issue when use wxPython, as following code, I use style "wx.TE_PROCESS_ENTER" for Enter Event,
but when I also use "AutoComplete", the Enter Event will be recognized as select all contents of the TextCtrl.
I want to know how to use them both.

#------------------------------------
self.commandInput = wx.TextCtrl(parent=self.panel, id=-1, value='', style=wx.TE_PROCESS_ENTER)
self.commandInput.AutoComplete(choices=self.choices)
#------------------------------------

Thanks a lot,
D.S.F


Reply all
Reply to author
Forward
0 new messages