-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathginga_config.py
80 lines (76 loc) · 2.57 KB
/
ginga_config.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
multiimage_layout = ['seq', {}, [
'vbox', {'name': 'top', 'width': 1520, 'height': 900},
{'row': ['hbox', {'name': 'menu'}], 'stretch': 0},
{'row': [
'vpanel', {}, [
'vbox', {},
{'row': [
'hpanel', {'name': 'hpnl'}, [
'ws', {'name': 'left', 'width': 300, 'group': 2}, [
('Info', [
'vpanel', {}, [
'ws', {'name': 'uleft', 'height': 300,
'show_tabs': False, 'group': 3}
],
[
'ws', {'name': 'lleft', 'height': 430,
'show_tabs': True, 'group': 3}
]
])
]
],
[
'vbox', {'name': 'main', 'width': 700},
{'row': [
'ws', {'wstype': 'tabs', 'name': 'channels',
'group': 1, 'use_toolbar': True}
],
'stretch': 1
},
{'row': [
'ws', {'wstype': 'stack', 'name': 'cbar',
'group': 99}
],
'stretch': 0
},
{'row': [
'ws', {'wstype': 'stack', 'name': 'readout',
'group': 99}
],
'stretch': 0
},
{'row': [
'ws', {'wstype': 'stack', 'name': 'operations',
'group': 99}
],
'stretch': 0
}
],
[
'ws', {'name': 'right', 'width': 430, 'group': 2}, [
('Dialogs', [
'ws', {'name': 'dialogs', 'group': 2}
])
]
]
],
'stretch': 1}, [
'ws', {'name': 'toolbar', 'height': 40,
'show_tabs': False, 'group': 2}
]
],
[
'hbox', {'name': 'pstamps'}
],
]},
{'row': [
'hbox', {'name': 'status'}
],
'stretch': 0
}
]]
def pre_gui_config(ginga):
# This is needed for MultiImage and MIPick
ginga.set_layout(multiimage_layout)
def post_gui_config(ginga):
pass