-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle_file_viewer.py
37 lines (29 loc) · 961 Bytes
/
single_file_viewer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 28 22:45:06 2016
@author: jack
"""
import core_functions as cf
cf.set_single_file_viewer_flag(True)
index_buttons = cf.row(cf.file_forward_button, cf.file_backward_button)
widgets = cf.column(
cf.message_text_output,
cf.data_directory_text_input,
cf.refresh_directory_button,
cf.select_file,
index_buttons,
cf.select_channel,
cf.fwd_bwd_button,
cf.apply_filters_menu,
cf.color_palette_menu,
cf.update_button,
cf.max_slider,
cf.min_slider,
)
main_row = cf.row(cf.p, widgets, cf.header_display)
layout = cf.column(main_row)
### initialize
#cf.update()
cf.curdoc().add_root(layout)
cf.curdoc().title = "scan inspector"