HDFGroup / hdf-compass

Python-based viewer for HDF5 on other file formats
Other
131 stars 26 forks source link

export / copy to clipboard #175

Closed michaelsippel closed 8 years ago

michaelsippel commented 8 years ago

We would like to implement the feature to export data/copy to clipboard in tab-delimitation or CSV from the array-frame in addition the plot function.

I would add two buttons to the toolbar in the array-frame: one to copy the selection of the dataset in tab-delimited format to the clipboard and one to export the selected data in CSV-format. This would make the exchange with excel/oo-calc and other data evaluation easier.

To add this feature I would implement in hdf_compass/compass_viewer/array/frame.py in the ArrayFrame class the functions on_copy and on_export. Should I bind them to the buttons in init_toolbar or is this done elsewhere?

oyarzun commented 8 years ago

Added in PR #177