python - Removing Selection, StyledTextCtrl - wxpython -


i function remove selection in styledtextctrl (select nothing)

txt.setselection(-1,-1) #seems select   txt.setselection(-1,0) # select first letter 

does know how can done? can't seem find in api

try this:

txt.setselection(0, 0) 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -