diff --git a/pyface/ui/wx/tree/tree.py b/pyface/ui/wx/tree/tree.py index 7d13db4e8..5fb61d127 100644 --- a/pyface/ui/wx/tree/tree.py +++ b/pyface/ui/wx/tree/tree.py @@ -182,7 +182,7 @@ def __init__(self, parent, image_size=(16, 16), **traits): # Create the toolkit-specific control. self.control = tree = _Tree( - self, parent, style=self._get_style() + self, parent, wxid=wx.ID_ANY, style=self._get_style() ) # Wire up the wx tree events.