TextCtrl EVT_SET_FOCUS on Windows loses cursor

Charley Khan <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
wxpython 4.1.0, installed from pypi, Python 3.8
On Windows (win7, and win 10) If I bind *anything* to TextCtrl 
EVT_SET_FOCUS, I lose the insert cursor. 
I can still type, but never see a cursor.
On MacOS, multiple versions, it's fine: I always see the cursor.

Is this an issue with native control, wxwidgets, or wxpython ?
Thanks so much!
-ck

import wx
print(wx.__version__)
app = wx.App()
frame = wx.Frame(None)
t = wx.TextCtrl(frame)

 

# *** On Windows, next line will make textctrl cursor vanish.
t.Bind(wx.EVT_SET_FOCUS, lambda x: None)

 

frame.Show()
app.MainLoop()

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/0c22cab2-ca4c-40f0-bde1-62fc68925229o%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.