Fix tree improvements for wxPython pre Phoenix.
@@ -52,7 +52,10 @@ _TREE_ARGS = {'style': wx.TR_DEFAULT_STYLE}
if wx.VERSION >= (2, 8, 11, ''): # wx.VERSION_STRING >= '2.8.11.0':
_TREE_ARGS['agwStyle'] = \
customtreectrl.TR_DEFAULT_STYLE | customtreectrl.TR_HIDE_ROOT | \
- customtreectrl.TR_EDIT_LABELS | customtreectrl.TR_ELLIPSIZE_LONG_ITEMS | \
+ customtreectrl.TR_EDIT_LABELS
+
+if wx.VERSION >= (3, 0, 3, ''):
+ _TREE_ARGS['agwStyle'] |= customtreectrl.TR_ELLIPSIZE_LONG_ITEMS | \
customtreectrl.TR_TOOLTIP_ON_LONG_ITEMS
if IS_WINDOWS:
