def _create_file_table(self, parent): """ Creates the file table. """ self._table_viewer = table_viewer = FileTableViewer( parent, sorter=FileSorter(), odd_row_background="white") return table_viewer.control
def _create_lhs(self, parent): """ Creates the left hand side or top depending on the style. """ self._tree_viewer = FileTreeViewer(parent, input=os.path.abspath(os.curdir), sorter=FileSorter()) self._tree_viewer.on_trait_change(self._on_tree_anytrait_changed) return self._tree_viewer.control
def _create_lhs(self, parent): """ Creates the left hand side or top depending on the style. """ self._tree_viewer = FileTreeViewer( parent, input=os.path.abspath(os.curdir), sorter=FileSorter() ) self._tree_viewer.observe( self._on_tree_anytrait_changed, match(lambda name, ctrait: True) # listen to all traits ) return self._tree_viewer.control