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/README.TXT ADDED
@@ -0,0 +1,22 @@
1
+ BORIS
2
+ Behavioral Observation Research Interactive Software
3
+
4
+ Copyright 2012-2024 Olivier Friard
5
+
6
+ BORIS is free software; you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation; either version 2 of the License, or
9
+ (at your option) any later version.
10
+
11
+ BORIS is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program; if not, write to the Free Software
18
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ MA 02110-1301, USA.
20
+
21
+
22
+
boris/add_modifier.ui ADDED
@@ -0,0 +1,330 @@
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>1088</width>
10
+ <height>654</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Set modifiers</string>
15
+ </property>
16
+ <layout class="QVBoxLayout" name="verticalLayout_5">
17
+ <item>
18
+ <widget class="QCheckBox" name="cb_ask_at_stop">
19
+ <property name="text">
20
+ <string>Ask for modifier(s) when behavior stops</string>
21
+ </property>
22
+ </widget>
23
+ </item>
24
+ <item>
25
+ <layout class="QVBoxLayout" name="verticalLayout_4">
26
+ <item>
27
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
28
+ <item>
29
+ <layout class="QVBoxLayout" name="verticalLayout_2">
30
+ <item>
31
+ <widget class="QLabel" name="lbModifier">
32
+ <property name="text">
33
+ <string>Modifier</string>
34
+ </property>
35
+ </widget>
36
+ </item>
37
+ <item>
38
+ <widget class="QLineEdit" name="leModifier"/>
39
+ </item>
40
+ <item>
41
+ <widget class="QLabel" name="lbCode">
42
+ <property name="text">
43
+ <string>Key code</string>
44
+ </property>
45
+ </widget>
46
+ </item>
47
+ <item>
48
+ <widget class="QLineEdit" name="leCode"/>
49
+ </item>
50
+ <item>
51
+ <widget class="QLabel" name="lbCodeHelp">
52
+ <property name="text">
53
+ <string>Key code is case sensitive. Type one character or a function key (F1, F2... F12)</string>
54
+ </property>
55
+ <property name="wordWrap">
56
+ <bool>true</bool>
57
+ </property>
58
+ </widget>
59
+ </item>
60
+ <item>
61
+ <spacer name="verticalSpacer">
62
+ <property name="orientation">
63
+ <enum>Qt::Vertical</enum>
64
+ </property>
65
+ <property name="sizeHint" stdset="0">
66
+ <size>
67
+ <width>20</width>
68
+ <height>40</height>
69
+ </size>
70
+ </property>
71
+ </spacer>
72
+ </item>
73
+ </layout>
74
+ </item>
75
+ <item>
76
+ <layout class="QVBoxLayout" name="verticalLayout_3">
77
+ <item>
78
+ <widget class="QPushButton" name="pbAddModifier">
79
+ <property name="text">
80
+ <string/>
81
+ </property>
82
+ </widget>
83
+ </item>
84
+ <item>
85
+ <widget class="QPushButton" name="pbModifyModifier">
86
+ <property name="text">
87
+ <string/>
88
+ </property>
89
+ </widget>
90
+ </item>
91
+ <item>
92
+ <spacer name="verticalSpacer_2">
93
+ <property name="orientation">
94
+ <enum>Qt::Vertical</enum>
95
+ </property>
96
+ <property name="sizeHint" stdset="0">
97
+ <size>
98
+ <width>20</width>
99
+ <height>40</height>
100
+ </size>
101
+ </property>
102
+ </spacer>
103
+ </item>
104
+ </layout>
105
+ </item>
106
+ <item>
107
+ <layout class="QVBoxLayout" name="verticalLayout">
108
+ <item>
109
+ <widget class="QTabWidget" name="tabWidgetModifiersSets">
110
+ <property name="maximumSize">
111
+ <size>
112
+ <width>16777215</width>
113
+ <height>30</height>
114
+ </size>
115
+ </property>
116
+ <property name="tabPosition">
117
+ <enum>QTabWidget::North</enum>
118
+ </property>
119
+ <property name="tabShape">
120
+ <enum>QTabWidget::Rounded</enum>
121
+ </property>
122
+ <property name="currentIndex">
123
+ <number>-1</number>
124
+ </property>
125
+ <property name="elideMode">
126
+ <enum>Qt::ElideNone</enum>
127
+ </property>
128
+ <property name="documentMode">
129
+ <bool>true</bool>
130
+ </property>
131
+ </widget>
132
+ </item>
133
+ <item>
134
+ <widget class="QLabel" name="lb_name">
135
+ <property name="text">
136
+ <string>Set name</string>
137
+ </property>
138
+ </widget>
139
+ </item>
140
+ <item>
141
+ <widget class="QLineEdit" name="le_name"/>
142
+ </item>
143
+ <item>
144
+ <widget class="QLabel" name="lb_description">
145
+ <property name="text">
146
+ <string>Description</string>
147
+ </property>
148
+ </widget>
149
+ </item>
150
+ <item>
151
+ <widget class="QLineEdit" name="le_description"/>
152
+ </item>
153
+ <item>
154
+ <widget class="QLabel" name="lbType">
155
+ <property name="text">
156
+ <string>Modifier type</string>
157
+ </property>
158
+ </widget>
159
+ </item>
160
+ <item>
161
+ <widget class="QComboBox" name="cbType">
162
+ <item>
163
+ <property name="text">
164
+ <string>Single selection</string>
165
+ </property>
166
+ </item>
167
+ <item>
168
+ <property name="text">
169
+ <string>Multiple selection</string>
170
+ </property>
171
+ </item>
172
+ <item>
173
+ <property name="text">
174
+ <string>Numeric</string>
175
+ </property>
176
+ </item>
177
+ <item>
178
+ <property name="text">
179
+ <string>Value from external data file</string>
180
+ </property>
181
+ </item>
182
+ </widget>
183
+ </item>
184
+ <item>
185
+ <widget class="QLabel" name="lbValues">
186
+ <property name="text">
187
+ <string>Values</string>
188
+ </property>
189
+ </widget>
190
+ </item>
191
+ <item>
192
+ <widget class="QListWidget" name="lwModifiers"/>
193
+ </item>
194
+ <item>
195
+ <layout class="QHBoxLayout" name="horizontalLayout">
196
+ <item>
197
+ <widget class="QPushButton" name="pbMoveUp">
198
+ <property name="text">
199
+ <string>Move modifier up</string>
200
+ </property>
201
+ </widget>
202
+ </item>
203
+ <item>
204
+ <widget class="QPushButton" name="pbMoveDown">
205
+ <property name="text">
206
+ <string>Move modifier down</string>
207
+ </property>
208
+ </widget>
209
+ </item>
210
+ <item>
211
+ <widget class="QPushButton" name="pbRemoveModifier">
212
+ <property name="text">
213
+ <string>Remove modifier</string>
214
+ </property>
215
+ </widget>
216
+ </item>
217
+ </layout>
218
+ </item>
219
+ <item>
220
+ <widget class="QPushButton" name="pb_sort_modifiers">
221
+ <property name="text">
222
+ <string>Sort modifiers</string>
223
+ </property>
224
+ </widget>
225
+ </item>
226
+ <item>
227
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
228
+ <item>
229
+ <widget class="QPushButton" name="pbAddSet">
230
+ <property name="text">
231
+ <string>Add set of modifiers</string>
232
+ </property>
233
+ </widget>
234
+ </item>
235
+ <item>
236
+ <widget class="QPushButton" name="pbRemoveSet">
237
+ <property name="text">
238
+ <string>Remove set of modifiers</string>
239
+ </property>
240
+ </widget>
241
+ </item>
242
+ </layout>
243
+ </item>
244
+ <item>
245
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
246
+ <item>
247
+ <widget class="QPushButton" name="pbMoveSetLeft">
248
+ <property name="text">
249
+ <string>Move set left</string>
250
+ </property>
251
+ </widget>
252
+ </item>
253
+ <item>
254
+ <widget class="QPushButton" name="pbMoveSetRight">
255
+ <property name="text">
256
+ <string>Move set right</string>
257
+ </property>
258
+ </widget>
259
+ </item>
260
+ </layout>
261
+ </item>
262
+ <item>
263
+ <widget class="QPushButton" name="pb_add_subjects">
264
+ <property name="text">
265
+ <string>Add subjects as modifiers</string>
266
+ </property>
267
+ </widget>
268
+ </item>
269
+ <item>
270
+ <widget class="QPushButton" name="pb_load_file">
271
+ <property name="text">
272
+ <string>Load modifiers from file</string>
273
+ </property>
274
+ </widget>
275
+ </item>
276
+ <item>
277
+ <spacer name="verticalSpacer_3">
278
+ <property name="orientation">
279
+ <enum>Qt::Vertical</enum>
280
+ </property>
281
+ <property name="sizeHint" stdset="0">
282
+ <size>
283
+ <width>20</width>
284
+ <height>40</height>
285
+ </size>
286
+ </property>
287
+ </spacer>
288
+ </item>
289
+ </layout>
290
+ </item>
291
+ </layout>
292
+ </item>
293
+ <item>
294
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
295
+ <item>
296
+ <spacer name="horizontalSpacer">
297
+ <property name="orientation">
298
+ <enum>Qt::Horizontal</enum>
299
+ </property>
300
+ <property name="sizeHint" stdset="0">
301
+ <size>
302
+ <width>40</width>
303
+ <height>20</height>
304
+ </size>
305
+ </property>
306
+ </spacer>
307
+ </item>
308
+ <item>
309
+ <widget class="QPushButton" name="pbCancel">
310
+ <property name="text">
311
+ <string>Cancel</string>
312
+ </property>
313
+ </widget>
314
+ </item>
315
+ <item>
316
+ <widget class="QPushButton" name="pbOK">
317
+ <property name="text">
318
+ <string>OK</string>
319
+ </property>
320
+ </widget>
321
+ </item>
322
+ </layout>
323
+ </item>
324
+ </layout>
325
+ </item>
326
+ </layout>
327
+ </widget>
328
+ <resources/>
329
+ <connections/>
330
+ </ui>
boris/converters.ui ADDED
@@ -0,0 +1,289 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>converters</class>
4
+ <widget class="QWidget" name="converters">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>1029</width>
10
+ <height>530</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Time converters</string>
15
+ </property>
16
+ <layout class="QVBoxLayout" name="verticalLayout">
17
+ <item>
18
+ <widget class="QLabel" name="label_4">
19
+ <property name="text">
20
+ <string>Converters</string>
21
+ </property>
22
+ </widget>
23
+ </item>
24
+ <item>
25
+ <widget class="QTableWidget" name="tw_converters">
26
+ <property name="editTriggers">
27
+ <set>QAbstractItemView::NoEditTriggers</set>
28
+ </property>
29
+ <property name="selectionMode">
30
+ <enum>QAbstractItemView::SingleSelection</enum>
31
+ </property>
32
+ <property name="selectionBehavior">
33
+ <enum>QAbstractItemView::SelectRows</enum>
34
+ </property>
35
+ <property name="sortingEnabled">
36
+ <bool>true</bool>
37
+ </property>
38
+ <column>
39
+ <property name="text">
40
+ <string>Name</string>
41
+ </property>
42
+ </column>
43
+ <column>
44
+ <property name="text">
45
+ <string>Description</string>
46
+ </property>
47
+ </column>
48
+ <column>
49
+ <property name="text">
50
+ <string>Code</string>
51
+ </property>
52
+ </column>
53
+ </widget>
54
+ </item>
55
+ <item>
56
+ <layout class="QHBoxLayout" name="horizontalLayout">
57
+ <item>
58
+ <widget class="QPushButton" name="pb_add_converter">
59
+ <property name="text">
60
+ <string>Add new converter</string>
61
+ </property>
62
+ </widget>
63
+ </item>
64
+ <item>
65
+ <widget class="QPushButton" name="pb_modify_converter">
66
+ <property name="text">
67
+ <string>Modify converter</string>
68
+ </property>
69
+ </widget>
70
+ </item>
71
+ <item>
72
+ <widget class="QPushButton" name="pb_delete_converter">
73
+ <property name="text">
74
+ <string>Delete converter</string>
75
+ </property>
76
+ </widget>
77
+ </item>
78
+ <item>
79
+ <widget class="QPushButton" name="pb_load_from_file">
80
+ <property name="text">
81
+ <string>Load converters from file</string>
82
+ </property>
83
+ </widget>
84
+ </item>
85
+ <item>
86
+ <widget class="QPushButton" name="pb_load_from_repo">
87
+ <property name="text">
88
+ <string>Load converters from BORIS repository</string>
89
+ </property>
90
+ </widget>
91
+ </item>
92
+ <item>
93
+ <spacer name="horizontalSpacer">
94
+ <property name="orientation">
95
+ <enum>Qt::Horizontal</enum>
96
+ </property>
97
+ <property name="sizeHint" stdset="0">
98
+ <size>
99
+ <width>40</width>
100
+ <height>20</height>
101
+ </size>
102
+ </property>
103
+ </spacer>
104
+ </item>
105
+ </layout>
106
+ </item>
107
+ <item>
108
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
109
+ <item>
110
+ <widget class="QLabel" name="label_2">
111
+ <property name="minimumSize">
112
+ <size>
113
+ <width>120</width>
114
+ <height>0</height>
115
+ </size>
116
+ </property>
117
+ <property name="text">
118
+ <string>Name</string>
119
+ </property>
120
+ </widget>
121
+ </item>
122
+ <item>
123
+ <widget class="QLineEdit" name="le_converter_name"/>
124
+ </item>
125
+ <item>
126
+ <spacer name="horizontalSpacer_3">
127
+ <property name="orientation">
128
+ <enum>Qt::Horizontal</enum>
129
+ </property>
130
+ <property name="sizeType">
131
+ <enum>QSizePolicy::Minimum</enum>
132
+ </property>
133
+ <property name="sizeHint" stdset="0">
134
+ <size>
135
+ <width>10</width>
136
+ <height>20</height>
137
+ </size>
138
+ </property>
139
+ </spacer>
140
+ </item>
141
+ </layout>
142
+ </item>
143
+ <item>
144
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
145
+ <item>
146
+ <widget class="QLabel" name="label_3">
147
+ <property name="minimumSize">
148
+ <size>
149
+ <width>120</width>
150
+ <height>0</height>
151
+ </size>
152
+ </property>
153
+ <property name="text">
154
+ <string>Description</string>
155
+ </property>
156
+ </widget>
157
+ </item>
158
+ <item>
159
+ <widget class="QLineEdit" name="le_converter_description"/>
160
+ </item>
161
+ <item>
162
+ <spacer name="horizontalSpacer_4">
163
+ <property name="orientation">
164
+ <enum>Qt::Horizontal</enum>
165
+ </property>
166
+ <property name="sizeType">
167
+ <enum>QSizePolicy::Minimum</enum>
168
+ </property>
169
+ <property name="sizeHint" stdset="0">
170
+ <size>
171
+ <width>10</width>
172
+ <height>20</height>
173
+ </size>
174
+ </property>
175
+ </spacer>
176
+ </item>
177
+ </layout>
178
+ </item>
179
+ <item>
180
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
181
+ <item>
182
+ <layout class="QVBoxLayout" name="verticalLayout_3">
183
+ <item>
184
+ <widget class="QLabel" name="label">
185
+ <property name="text">
186
+ <string>Python code</string>
187
+ </property>
188
+ </widget>
189
+ </item>
190
+ <item>
191
+ <widget class="QPushButton" name="pb_code_help">
192
+ <property name="text">
193
+ <string>Help</string>
194
+ </property>
195
+ </widget>
196
+ </item>
197
+ <item>
198
+ <spacer name="verticalSpacer_2">
199
+ <property name="orientation">
200
+ <enum>Qt::Vertical</enum>
201
+ </property>
202
+ <property name="sizeHint" stdset="0">
203
+ <size>
204
+ <width>20</width>
205
+ <height>40</height>
206
+ </size>
207
+ </property>
208
+ </spacer>
209
+ </item>
210
+ </layout>
211
+ </item>
212
+ <item>
213
+ <widget class="QPlainTextEdit" name="pteCode">
214
+ <property name="font">
215
+ <font>
216
+ <family>Monospace</family>
217
+ </font>
218
+ </property>
219
+ </widget>
220
+ </item>
221
+ <item>
222
+ <layout class="QVBoxLayout" name="verticalLayout_2">
223
+ <item>
224
+ <widget class="QPushButton" name="pb_save_converter">
225
+ <property name="text">
226
+ <string>Save converter</string>
227
+ </property>
228
+ </widget>
229
+ </item>
230
+ <item>
231
+ <widget class="QPushButton" name="pb_cancel_converter">
232
+ <property name="text">
233
+ <string>Cancel</string>
234
+ </property>
235
+ </widget>
236
+ </item>
237
+ <item>
238
+ <spacer name="verticalSpacer">
239
+ <property name="orientation">
240
+ <enum>Qt::Vertical</enum>
241
+ </property>
242
+ <property name="sizeHint" stdset="0">
243
+ <size>
244
+ <width>20</width>
245
+ <height>40</height>
246
+ </size>
247
+ </property>
248
+ </spacer>
249
+ </item>
250
+ </layout>
251
+ </item>
252
+ </layout>
253
+ </item>
254
+ <item>
255
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
256
+ <item>
257
+ <spacer name="horizontalSpacer_2">
258
+ <property name="orientation">
259
+ <enum>Qt::Horizontal</enum>
260
+ </property>
261
+ <property name="sizeHint" stdset="0">
262
+ <size>
263
+ <width>40</width>
264
+ <height>20</height>
265
+ </size>
266
+ </property>
267
+ </spacer>
268
+ </item>
269
+ <item>
270
+ <widget class="QPushButton" name="pb_cancel_widget">
271
+ <property name="text">
272
+ <string>Cancel</string>
273
+ </property>
274
+ </widget>
275
+ </item>
276
+ <item>
277
+ <widget class="QPushButton" name="pbOK">
278
+ <property name="text">
279
+ <string>OK</string>
280
+ </property>
281
+ </widget>
282
+ </item>
283
+ </layout>
284
+ </item>
285
+ </layout>
286
+ </widget>
287
+ <resources/>
288
+ <connections/>
289
+ </ui>
boris/core.py CHANGED
@@ -472,7 +472,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
472
472
  """
473
473
  allow to block Qdockwidgets on main window because they can have a strange behavior specially on Mac
474
474
  """
475
- for w in [self.dwEvents, self.dwEthogram, self.dwSubjects]:
475
+ for w in (self.dwEvents, self.dwEthogram, self.dwSubjects):
476
476
  if self.action_block_dockwidgets.isChecked():
477
477
  w.setFloating(False)
478
478
  w.setFeatures(QDockWidget.NoDockWidgetFeatures)