boris-behav-obs 8.27.6__py2.py3-none-any.whl → 8.27.7__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
boris/param_panel.ui ADDED
@@ -0,0 +1,379 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>Dialog</class>
4
+ <widget class="QDialog" name="Dialog">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>1037</width>
10
+ <height>890</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Parameters</string>
15
+ </property>
16
+ <layout class="QVBoxLayout" name="verticalLayout_4">
17
+ <item>
18
+ <layout class="QVBoxLayout" name="verticalLayout_2">
19
+ <item>
20
+ <widget class="QLabel" name="lbSubjects">
21
+ <property name="text">
22
+ <string>Subjects</string>
23
+ </property>
24
+ </widget>
25
+ </item>
26
+ <item>
27
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
28
+ <item>
29
+ <widget class="QPushButton" name="pbSelectAllSubjects">
30
+ <property name="text">
31
+ <string>Select all</string>
32
+ </property>
33
+ </widget>
34
+ </item>
35
+ <item>
36
+ <widget class="QPushButton" name="pbUnselectAllSubjects">
37
+ <property name="text">
38
+ <string>Unselect all</string>
39
+ </property>
40
+ </widget>
41
+ </item>
42
+ <item>
43
+ <widget class="QPushButton" name="pbReverseSubjectsSelection">
44
+ <property name="text">
45
+ <string>Reverse selection</string>
46
+ </property>
47
+ </widget>
48
+ </item>
49
+ <item>
50
+ <spacer name="horizontalSpacer_4">
51
+ <property name="orientation">
52
+ <enum>Qt::Horizontal</enum>
53
+ </property>
54
+ <property name="sizeHint" stdset="0">
55
+ <size>
56
+ <width>40</width>
57
+ <height>20</height>
58
+ </size>
59
+ </property>
60
+ </spacer>
61
+ </item>
62
+ </layout>
63
+ </item>
64
+ <item>
65
+ <widget class="QListWidget" name="lwSubjects"/>
66
+ </item>
67
+ <item>
68
+ <widget class="QLabel" name="lbBehaviors">
69
+ <property name="text">
70
+ <string>Behaviors</string>
71
+ </property>
72
+ </widget>
73
+ </item>
74
+ <item>
75
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
76
+ <item>
77
+ <widget class="QPushButton" name="pbSelectAllBehaviors">
78
+ <property name="text">
79
+ <string>Select all</string>
80
+ </property>
81
+ </widget>
82
+ </item>
83
+ <item>
84
+ <widget class="QPushButton" name="pbUnselectAllBehaviors">
85
+ <property name="text">
86
+ <string>Unselect all</string>
87
+ </property>
88
+ </widget>
89
+ </item>
90
+ <item>
91
+ <widget class="QPushButton" name="pbReverseBehaviorsSelection">
92
+ <property name="text">
93
+ <string>Reverse selection</string>
94
+ </property>
95
+ </widget>
96
+ </item>
97
+ <item>
98
+ <spacer name="horizontalSpacer_5">
99
+ <property name="orientation">
100
+ <enum>Qt::Horizontal</enum>
101
+ </property>
102
+ <property name="sizeHint" stdset="0">
103
+ <size>
104
+ <width>40</width>
105
+ <height>20</height>
106
+ </size>
107
+ </property>
108
+ </spacer>
109
+ </item>
110
+ </layout>
111
+ </item>
112
+ <item>
113
+ <widget class="QListWidget" name="lwBehaviors"/>
114
+ </item>
115
+ <item>
116
+ <layout class="QHBoxLayout" name="horizontalLayout_9">
117
+ <item>
118
+ <widget class="QCheckBox" name="cbIncludeModifiers">
119
+ <property name="text">
120
+ <string>Include modifiers</string>
121
+ </property>
122
+ </widget>
123
+ </item>
124
+ <item>
125
+ <widget class="QCheckBox" name="cbExcludeBehaviors">
126
+ <property name="text">
127
+ <string>Exclude behaviors without events</string>
128
+ </property>
129
+ </widget>
130
+ </item>
131
+ <item>
132
+ <spacer name="horizontalSpacer_7">
133
+ <property name="orientation">
134
+ <enum>Qt::Horizontal</enum>
135
+ </property>
136
+ <property name="sizeHint" stdset="0">
137
+ <size>
138
+ <width>40</width>
139
+ <height>20</height>
140
+ </size>
141
+ </property>
142
+ </spacer>
143
+ </item>
144
+ </layout>
145
+ </item>
146
+ <item>
147
+ <widget class="QFrame" name="frm_time_bin_size">
148
+ <property name="frameShape">
149
+ <enum>QFrame::StyledPanel</enum>
150
+ </property>
151
+ <property name="frameShadow">
152
+ <enum>QFrame::Raised</enum>
153
+ </property>
154
+ <layout class="QHBoxLayout" name="horizontalLayout_8">
155
+ <item>
156
+ <layout class="QHBoxLayout" name="horizontalLayout_7">
157
+ <item>
158
+ <widget class="QLabel" name="lb_time_bin_size">
159
+ <property name="text">
160
+ <string>Time bin size (s)</string>
161
+ </property>
162
+ </widget>
163
+ </item>
164
+ <item>
165
+ <widget class="QSpinBox" name="sb_time_bin_size">
166
+ <property name="maximum">
167
+ <number>86400</number>
168
+ </property>
169
+ <property name="singleStep">
170
+ <number>10</number>
171
+ </property>
172
+ </widget>
173
+ </item>
174
+ <item>
175
+ <spacer name="horizontalSpacer_8">
176
+ <property name="orientation">
177
+ <enum>Qt::Horizontal</enum>
178
+ </property>
179
+ <property name="sizeHint" stdset="0">
180
+ <size>
181
+ <width>40</width>
182
+ <height>20</height>
183
+ </size>
184
+ </property>
185
+ </spacer>
186
+ </item>
187
+ </layout>
188
+ </item>
189
+ </layout>
190
+ </widget>
191
+ </item>
192
+ <item>
193
+ <widget class="QFrame" name="frm_time">
194
+ <property name="frameShape">
195
+ <enum>QFrame::StyledPanel</enum>
196
+ </property>
197
+ <property name="frameShadow">
198
+ <enum>QFrame::Raised</enum>
199
+ </property>
200
+ <layout class="QVBoxLayout" name="verticalLayout_3">
201
+ <item>
202
+ <widget class="QLabel" name="lb_time_interval">
203
+ <property name="text">
204
+ <string>Time interval</string>
205
+ </property>
206
+ </widget>
207
+ </item>
208
+ <item>
209
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
210
+ <item>
211
+ <widget class="QRadioButton" name="rb_observed_events">
212
+ <property name="text">
213
+ <string>Observed events</string>
214
+ </property>
215
+ </widget>
216
+ </item>
217
+ <item>
218
+ <widget class="QRadioButton" name="rb_user_defined">
219
+ <property name="text">
220
+ <string>User defined</string>
221
+ </property>
222
+ </widget>
223
+ </item>
224
+ <item>
225
+ <widget class="QRadioButton" name="rb_media_duration">
226
+ <property name="text">
227
+ <string>Media file(s) duration</string>
228
+ </property>
229
+ <property name="checkable">
230
+ <bool>true</bool>
231
+ </property>
232
+ <property name="checked">
233
+ <bool>false</bool>
234
+ </property>
235
+ </widget>
236
+ </item>
237
+ <item>
238
+ <spacer name="horizontalSpacer_3">
239
+ <property name="orientation">
240
+ <enum>Qt::Horizontal</enum>
241
+ </property>
242
+ <property name="sizeHint" stdset="0">
243
+ <size>
244
+ <width>40</width>
245
+ <height>20</height>
246
+ </size>
247
+ </property>
248
+ </spacer>
249
+ </item>
250
+ </layout>
251
+ </item>
252
+ <item>
253
+ <widget class="QFrame" name="frm_time_interval">
254
+ <property name="frameShape">
255
+ <enum>QFrame::StyledPanel</enum>
256
+ </property>
257
+ <property name="frameShadow">
258
+ <enum>QFrame::Raised</enum>
259
+ </property>
260
+ <layout class="QVBoxLayout" name="verticalLayout">
261
+ <item>
262
+ <layout class="QHBoxLayout" name="horizontalLayout">
263
+ <item>
264
+ <widget class="QLabel" name="lbStartTime">
265
+ <property name="text">
266
+ <string>Start time</string>
267
+ </property>
268
+ </widget>
269
+ </item>
270
+ <item>
271
+ <widget class="QLabel" name="label_2">
272
+ <property name="text">
273
+ <string/>
274
+ </property>
275
+ </widget>
276
+ </item>
277
+ <item>
278
+ <spacer name="horizontalSpacer_2">
279
+ <property name="orientation">
280
+ <enum>Qt::Horizontal</enum>
281
+ </property>
282
+ <property name="sizeHint" stdset="0">
283
+ <size>
284
+ <width>40</width>
285
+ <height>20</height>
286
+ </size>
287
+ </property>
288
+ </spacer>
289
+ </item>
290
+ </layout>
291
+ </item>
292
+ <item>
293
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
294
+ <item>
295
+ <widget class="QLabel" name="lbEndTime">
296
+ <property name="text">
297
+ <string>End time</string>
298
+ </property>
299
+ </widget>
300
+ </item>
301
+ <item>
302
+ <widget class="QLabel" name="label_3">
303
+ <property name="text">
304
+ <string/>
305
+ </property>
306
+ </widget>
307
+ </item>
308
+ <item>
309
+ <spacer name="horizontalSpacer_6">
310
+ <property name="orientation">
311
+ <enum>Qt::Horizontal</enum>
312
+ </property>
313
+ <property name="sizeHint" stdset="0">
314
+ <size>
315
+ <width>40</width>
316
+ <height>20</height>
317
+ </size>
318
+ </property>
319
+ </spacer>
320
+ </item>
321
+ </layout>
322
+ </item>
323
+ <item>
324
+ <spacer name="verticalSpacer">
325
+ <property name="orientation">
326
+ <enum>Qt::Vertical</enum>
327
+ </property>
328
+ <property name="sizeHint" stdset="0">
329
+ <size>
330
+ <width>20</width>
331
+ <height>40</height>
332
+ </size>
333
+ </property>
334
+ </spacer>
335
+ </item>
336
+ </layout>
337
+ </widget>
338
+ </item>
339
+ </layout>
340
+ </widget>
341
+ </item>
342
+ <item>
343
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
344
+ <item>
345
+ <spacer name="horizontalSpacer">
346
+ <property name="orientation">
347
+ <enum>Qt::Horizontal</enum>
348
+ </property>
349
+ <property name="sizeHint" stdset="0">
350
+ <size>
351
+ <width>40</width>
352
+ <height>20</height>
353
+ </size>
354
+ </property>
355
+ </spacer>
356
+ </item>
357
+ <item>
358
+ <widget class="QPushButton" name="pbCancel">
359
+ <property name="text">
360
+ <string>Cancel</string>
361
+ </property>
362
+ </widget>
363
+ </item>
364
+ <item>
365
+ <widget class="QPushButton" name="pbOK">
366
+ <property name="text">
367
+ <string>OK</string>
368
+ </property>
369
+ </widget>
370
+ </item>
371
+ </layout>
372
+ </item>
373
+ </layout>
374
+ </item>
375
+ </layout>
376
+ </widget>
377
+ <resources/>
378
+ <connections/>
379
+ </ui>
boris/preferences.py CHANGED
@@ -146,7 +146,7 @@ def preferences(self):
146
146
  cfg.MPV_HWDEC_OPTIONS.index(self.config_param.get(cfg.MPV_HWDEC, cfg.MPV_HWDEC_DEFAULT_VALUE))
147
147
  )
148
148
  except Exception:
149
- preferencesWindow.cb_hwdec.setCurrentIndex(cfg.MPV_HWDEC_DEFAULT_VALUE)
149
+ preferencesWindow.cb_hwdec.setCurrentIndex(cfg.MPV_HWDEC_OPTIONS.index(cfg.MPV_HWDEC_DEFAULT_VALUE))
150
150
 
151
151
  # PROJET FILE INDENTATION
152
152
  preferencesWindow.combo_project_file_indentation.clear()
@@ -286,7 +286,7 @@ def preferences(self):
286
286
  # interface
287
287
  self.config_param[cfg.TOOLBAR_ICON_SIZE] = preferencesWindow.sb_toolbar_icon_size.value()
288
288
  self.config_param[cfg.DARK_MODE] = preferencesWindow.cb_darkmode.isChecked()
289
- if self.config_param[cfg.DARK_MODE]:
289
+ if self.config_param.get(cfg.DARK_MODE, cfg.DEFAULT_FRAME_MODE):
290
290
  self.setStyleSheet(qdarkstyle.load_stylesheet(qt_api="pyqt5"))
291
291
  else:
292
292
  self.setStyleSheet("")