def __init__(self, *args, **kwargs):
     """Initializer.
     """
     style = kwargs.pop('style', 0)|wx.TR_NO_BUTTONS|wx.TR_HAS_BUTTONS|wx.SUNKEN_BORDER
     kwargs['style'] = style
     self.selection_callback = kwargs.pop('selection_callback', None)
     TreeCtrlPlus.__init__(self, *args, **kwargs)
     self._hdf5_file = None
 def __init__(self, *args, **kwargs):
     """Initializer.
     """
     style = kwargs.pop(
         'style',
         0) | wx.TR_NO_BUTTONS | wx.TR_HAS_BUTTONS | wx.SUNKEN_BORDER
     kwargs['style'] = style
     self.selection_callback = kwargs.pop('selection_callback', None)
     TreeCtrlPlus.__init__(self, *args, **kwargs)
     self._hdf5_file = None
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     """Initializer.
     """
     style = kwargs.pop('style', 0)|wx.TR_NO_BUTTONS|wx.TR_HAS_BUTTONS
     kwargs['style'] = style
     TreeCtrlPlus.__init__(self, *args, **kwargs)
     # tree item menu
     self.tree_menu = PipelineTreeItemMenu()
     # initial pipeline set to None
     self._pilepline = None
    def __init__(self, *args, **kwargs):
        kwargs['style'] = wx.SUNKEN_BORDER|wx.TR_HAS_BUTTONS|kwargs.get('style', 0)
        root_path = kwargs.pop('root_path', os.getcwd())
        file_node_profiler = kwargs.pop('file_node_profiler', DefaultFileNodeProfiler)

        TreeCtrlPlus.__init__(self, *args, **kwargs)
        image_list_wrapper = ImageListWrapper('icons/mono16/data')
        # bindings
        self._root_path = root_path
        self.file_node_profiler = file_node_profiler
        self.image_list_wrapper = image_list_wrapper
        self.SetImageList(self.image_list_wrapper.image_list)
        self.build_root()