4 etatsTraj, a module for pymecavideo:
5 a program to track moving points
in a video frameset
7 Copyright (C) 2023 Georges Khaznadar <georgesk
@debian.org>
9 This program
is free software: you can redistribute it
and/
or modify
10 it under the terms of the GNU General Public License
as published by
11 the Free Software Foundation, either version 3 of the License,
or
12 (at your option) any later version.
14 This program
is distributed
in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License
for more details.
19 You should have received a copy of the GNU General Public License
20 along
with this program. If
not, see <http://www.gnu.org/licenses/>.
23from PyQt6.QtCore import Qt, QObject, pyqtSignal, QTimer
27from vecteur import vecteur
28from etats import Etats_Base
30class Etats(Etats_Base):
32 Une classe qui permet de définir les états pour le ccordWidget
33 debut, A, AB, B, C, D, E : voir le fichier etats_pymecavideo.html
37 Etats_Base.__init__(self)
42 actions à faire en cas de changement d'état
43 @param etat : debut, A, AB, B, C, D, E
47 for obj
in self.button_video, self.widget_chronophoto:
50 self.trajW.chrono =
False
52 for obj
in self.radioButtonNearMouse, \
53 self.radioButtonSpeedEveryWhere:
56 self.spinBox_chrono.setMaximum(self.pointage.image_max)
64 self.comboBox_referentiel.setEnabled(
True)
65 self.comboBox_referentiel.clear()
66 self.comboBox_referentiel.insertItem(-1,
"camera")
67 for obj
in self.pointage.suivis:
68 self.comboBox_referentiel.insertItem(
69 -1, self.tr(
"objet N° {0}").format(str(obj)))
Une classe qui permet de définir les états pour le ccordWidget debut, A, AB, B, C,...
def changeEtat(self, etat)
actions à faire en cas de changement d'état
Une classe qui permet de définir les états pour le pointageWidget debut, A, AB, B,...