Commit c529b441 authored by eric pellegrini's avatar eric pellegrini
Browse files

added a helper function to open the viewer with a button for opening the documentation

parent 7baaf51f
......@@ -14,6 +14,18 @@ import hdfviewer
from hdfviewer.viewers.MplDataViewer import MplDataViewer, MplDataViewerError
from hdfviewer.widgets.MplOutput import MplOutput
def HDFViewerWidget(hdf, startPath=None):
vbox = widgets.VBox()
button = widgets.Button(description="documentation", tooltip="open documentation for release {0}".format(hdfviewer.__release__))
vbox.children = [button,HDFViewer(hdf,startPath)]
return vbox
class HDFViewerError(Exception):
""":class:`HDFViewer` specific exception"""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment