Skip to content

Commit

Permalink
Merge pull request #2597 from infinity77/patch-1
Browse files Browse the repository at this point in the history
Possible fix for #2549
  • Loading branch information
swt2c authored Sep 5, 2024
2 parents a87b028 + 0806188 commit d869f28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wx/lib/agw/customtreectrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,9 @@ def __init__(self, owner, item=None):
bs = self.GetBestSize()
self.SetSize((-1, bs.height))

if self._startValue:
self.SelectAll()

self.Bind(wx.EVT_CHAR, self.OnChar)
self.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
Expand Down

0 comments on commit d869f28

Please sign in to comment.