@@ -90,20 +90,22 @@ def __init__(self, viewer_state, available_layers):
90
90
self .widget_constellation_boundaries = LinkedDropdown (self .state , 'constellation_boundaries' ,
91
91
label = "Boundaries:" )
92
92
self .widget_constellation_boundary_color = linked_color_picker (self .state , 'constellation_boundary_color' ,
93
- description = "Boundary" )
93
+ description = "Boundary" )
94
94
dlink ((self .widget_constellation_boundaries , 'value' ), (self .widget_constellation_boundary_color , 'disabled' ),
95
95
lambda value : value != "All" )
96
96
self .widget_constellation_selection_color = linked_color_picker (self .state , 'constellation_selection_color' ,
97
- description = "Selection" )
97
+ description = "Selection" )
98
98
dlink ((self .widget_constellation_boundaries , 'value' ), (self .widget_constellation_selection_color , 'disabled' ),
99
99
lambda value : value == "None" )
100
100
101
101
self .widget_constellation_figures = linked_checkbox (self .state , 'constellation_figures' , description = "Figures" )
102
102
self .widget_constellation_figure_color = linked_color_picker (self .state , 'constellation_figure_color' ,
103
- description = "Figure" )
103
+ description = "Figure" )
104
104
set_enabled_from_checkbox (self .widget_constellation_figure_color , self .widget_constellation_figures )
105
- self .widget_constellation_labels = linked_checkbox (self .state , 'constellation_labels' , description = "Labels" )
106
- self .widget_constellation_pictures = linked_checkbox (self .state , 'constellation_pictures' , description = "Pictures" )
105
+ self .widget_constellation_labels = linked_checkbox (self .state , 'constellation_labels' ,
106
+ description = "Labels" )
107
+ self .widget_constellation_pictures = linked_checkbox (self .state , 'constellation_pictures' ,
108
+ description = "Pictures" )
107
109
108
110
constellations_hbox_layout = Layout (gap = "10px" , justify_content = "space-between" )
109
111
constellations_vbox_layout = Layout (height = "fit-content" , gap = "2px" , padding = "5px" , flex_direction = "column" )
@@ -150,26 +152,24 @@ def __init__(self, viewer_state, available_layers):
150
152
self .widget_min_time = NaiveDatetimePicker (description = "Min Time:" )
151
153
link ((self .state , 'min_time' ), (self .widget_min_time , 'value' ),
152
154
lambda time : self ._datetime64_to_utc_datetime (time ),
153
- lambda value : datetime64 (value )
154
- )
155
+ lambda value : datetime64 (value ))
155
156
self .widget_max_time = NaiveDatetimePicker (description = "Max Time:" )
156
157
link ((self .state , 'max_time' ), (self .widget_max_time , 'value' ),
157
158
lambda time : self ._datetime64_to_utc_datetime (time ),
158
- lambda value : datetime64 (value )
159
- )
159
+ lambda value : datetime64 (value ))
160
160
161
161
self .other_settings = VBox (children = [
162
162
GridBox (children = [self .widget_ecliptic_label , self .widget_ecliptic ,
163
163
self .widget_ecliptic_color , self .widget_precession_chart_label ,
164
- self .widget_precession_chart , self .widget_precession_chart_color ],
164
+ self .widget_precession_chart ,
165
+ self .widget_precession_chart_color ],
165
166
layout = Layout (grid_template_columns = "60% 20% 20%" , width = "100%" ,
166
167
grid_gap = "2px 10px" )),
167
168
VBox (children = [self .widget_play_time , self .widget_clock_rate ,
168
169
self .widget_current_time_label , self .widget_current_time ,
169
170
self .widget_min_time , self .widget_max_time ])
170
171
])
171
172
172
-
173
173
self .settings = Accordion (children = [self .general_settings , self .grid_settings ,
174
174
self .constellation_settings , self .other_settings ],
175
175
layout = Layout (width = "350px" ))
@@ -232,7 +232,7 @@ def __init__(self, layer_state):
232
232
self .state = layer_state
233
233
self .color_widgets = Color (state = self .state )
234
234
self .size_widgets = Size (state = self .state )
235
-
235
+
236
236
self .widget_time_series = linked_checkbox (self .state , 'time_series' , description = "Time series" )
237
237
self .widget_time_att = LinkedDropdown (self .state , 'time_att' , 'Time att' )
238
238
self .widget_time_decay_value = linked_float_text (self .state , 'time_decay_value' ,
0 commit comments