Pymecavideo 8.0
Étude cinématique à l'aide de vidéos
etatsCoord.py
1# -*- coding: utf-8 -*-
2
3"""
4 etatsCoord, a module for pymecavideo:
5 a program to track moving points in a video frameset
6
7 Copyright (C) 2023 Georges Khaznadar <georgesk@debian.org>
8
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.
13
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.
18
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/>.
21"""
22
23from PyQt6.QtCore import Qt, QObject, pyqtSignal, QTimer
24
25import os
26
27from vecteur import vecteur
28from etats import Etats_Base
29
30class Etats(Etats_Base):
31 """
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
34 """
35
36 def __init__(self):
37 Etats_Base.__init__(self)
38 return
39
40 def changeEtat(self, etat):
41 """
42 changement d'état : fait ce qu'il faut faire au niveau
43 de l'onglet des coordonnées
44 """
45 self.etat = etat
46 if etat == "debut":
47 # décochage de widgets
48 for obj in self.checkBox_Ec, self.checkBox_Em, self.checkBox_Epp:
49 obj.setChecked(False)
50 elif etat == "A":
51 # décochage de widgets
52 for obj in self.checkBox_Ec, self.checkBox_Em, self.checkBox_Epp:
53 obj.setChecked(False)
54 elif etat == "AB":
55 pass
56 elif etat == "C":
57 pass
58 elif etat == "D":
59 # comme l'onglet 2 est actif, il faut s'occuper du statut des
60 # boutons pour les énergies
61 for obj in self.checkBox_Ec, self.checkBox_Em, self.checkBox_Epp:
62 obj.setChecked(False)
63 obj.setEnabled(bool(self.pointage.echelle_image))
64 self.pushButton_select_all_table.setEnabled(True)
65 elif etat == "E":
66 pass
67 return
68
Une classe qui permet de définir les états pour le ccordWidget debut, A, AB, B, C,...
Definition: etatsCoord.py:34
def changeEtat(self, etat)
changement d'état : fait ce qu'il faut faire au niveau de l'onglet des coordonnées
Definition: etatsCoord.py:44
Une classe qui permet de définir les états pour le pointageWidget debut, A, AB, B,...
Definition: etats.py:30