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 -

java - Play! framework 2.0: How to display multiple image? -

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