import sys, os
sys.path.insert(0, os.path.abspath('..'))
import ipywe.fileselector
fsel= ipywe.fileselector.FileSelectorPanel(instruction='select file', start_dir='.')
fsel.show()
print fsel.selected
fsel= ipywe.fileselector.FileSelectorPanel(instruction='select file', start_dir='.', type='directory')
fsel.show()
print fsel.selected
fsel= ipywe.fileselector.FileSelectorPanel(instruction='select file', start_dir='.', multiple=True)
fsel.show()
print fsel.selected
fsel= ipywe.fileselector.FileSelectorPanel(instruction='select file', start_dir='.', type='directory', multiple=True)
fsel.show()
print fsel.selected
def callback(selected):
print selected
fsel= ipywe.fileselector.FileSelectorPanel(instruction='select file', start_dir='.', next=callback)
fsel.show()