- def __init__(self, *args, **kwargs):
- # CustomTreeCtrl uses a different keyword for the window style
- # argument ('ctstyle'). To hide this, we replace the 'style' keyword
- # by 'ctstyle' if we're mixed in with CustomTreeCtrl.
- if isinstance(self, wx.lib.customtreectrl.CustomTreeCtrl):
- kwargs['ctstyle'] = kwargs.pop('style', wx.TR_DEFAULT_STYLE)
- super(TreeAPIHarmonizer, self).__init__(*args, **kwargs)
-