[英]Removing Selection, StyledTextCtrl - wxpython
我正在尋找一個功能來刪除StyledTextCtrl中的選擇(不選擇任何內容)
txt.SetSelection(-1,-1) #Seems to select everything
txt.SetSelection(-1,0) # This will select the first letter
有誰知道該怎么做? 我似乎無法在API中找到它
嘗試這個:
txt.SetSelection(0, 0)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.