Ordinateur de bord pour voiture de collection 7.1
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Inclinometre Class Reference

classe basée sur le BtnVnt. More...

Inheritance diagram for Inclinometre:
BtnVnt

Public Member Functions

def __init__ (self, ListeClVar, CheckParent, Name, TangageMax, RoulisMax, CouleurAlerte, CouleurFond, CouleurTerre, CouleurArc, CouleurCiel, Parent=None, width=82, height=88, x=0, y=0, BoutonActif=False, BoutonMom=True, imgBtn=None, imgVnt=None, imgPicto=None, text="", TailleText=None, colorOn=IHM_param.COUL_TXT_AL_DEF, colorOff=IHM_param.COUL_TXT_DEF, Func=None, FuncParam=None, ClVarButton=None, ClVarVnt=None, ClVarTxt=None, LabelTxt=None, LabelPos="up", ClVarTxtAlrm=True)
 The constructor. More...
 
def CalcCoord (self, Position, longueur)
 
def Redessine (self)
 
def ReLoadState (self)
 recupére l'état du bouton et du voyant dans les variables liées More...
 
- Public Member Functions inherited from BtnVnt
def __init__ (self, ListeClVar, CheckParent, Name, Parent=None, width=82, height=88, x=0, y=0, BoutonActif=False, BoutonMom=True, imgBtn=None, imgVnt=None, imgPicto=None, text="", TailleText=None, colorOn=IHM_param.COUL_TXT_AL_DEF, colorOff=IHM_param.COUL_TXT_DEF, Func=None, FuncParam=None, ClVarButton=None, ClVarVnt=None, ClVarTxt=None, LabelTxt=None, LabelPos="up", LabelTailleText=None, ClVarTxtAlrm=True, *args)
 The constructor. More...
 
def GetBtn (self)
 
def GetVnt (self)
 
def RefreshEtat (self)
 
def ReLoadState (self)
 recupére l'état du bouton et du voyant dans les variables liées More...
 
def SetBouton (self, Value=False)
 
def SetState (self, Msg=None, BtnActif=None, VntActif=None, Color=None)
 
def SetVoyant (self, Value=False)
 

Public Attributes

 arccentre
 
 arctour
 
 CouleurAlerte
 
 CouleurArc
 
 CouleurCiel
 
 CouleurFond
 
 CouleurTerre
 
 oval
 
 roulis
 
 RoulisMax
 
 TangageMax
 
- Public Attributes inherited from BtnVnt
 ClVarTxtAlrm
 
 colorOff
 
 colorOn
 
 Name
 
 Parent
 
 x
 
 y
 

Static Public Attributes

int roulis = 0
 
int tangage = 0
 
- Static Public Attributes inherited from BtnVnt
dictionary ListeActions = {}
 
 text = None
 

Detailed Description

classe basée sur le BtnVnt.

mais on affiche des ronds pour _ClVarVnt et __ClVarButton au lieu de l'état du bouton.

Date
:
  • 03 aout 2019 Version 5.3
  • 7.1 jan 2022 : 2 bug fix :
    • parent.__ClVarVnt can't be read, change for parent._ClVarVnt (only one '_')
    • The display was in wrong orientation in self.Redessine()

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ListeClVar,
  CheckParent,
  Name,
  Parent,
  width,
  height,
  x,
  y,
  BoutonActif,
  BoutonMom,
  imgBtn = None,
  imgVnt = 82,
  imgPicto = 88,
  text = 0,
  TailleText = 0,
  colorOn = False,
  colorOff = True,
  Func = None,
  FuncParam = None,
  ClVarButton = None,
  ClVarVnt = "",
  ClVarTxt = None,
  LabelTxt = IHM_param.COUL_TXT_AL_DEF,
  LabelPos = IHM_param.COUL_TXT_DEF,
  LabelTailleText = None,
  ClVarTxtAlrm = None,
  args = None,
  ClVarVnt = None,
  ClVarTxt = None,
  LabelTxt = None,
  LabelPos = "up",
  ClVarTxtAlrm = True 
)

The constructor.

Reimplemented from BtnVnt.

Member Function Documentation

◆ CalcCoord()

def CalcCoord (   self,
  Position,
  longueur 
)
         transforme un point d'une courbe type y = ax+b en coordonnée (x,y) sur un
         systéme polaire (angle, longueur)

◆ Redessine()

def Redessine (   self)

◆ ReLoadState()

def ReLoadState (   self)

recupére l'état du bouton et du voyant dans les variables liées

Date
6.3 15 avril 2021 : ajout "Alarm = True à l'appel de "SelectFrame"

Reimplemented from BtnVnt.

Member Data Documentation

◆ arccentre

arccentre

◆ arctour

arctour

◆ CouleurAlerte

CouleurAlerte

◆ CouleurArc

CouleurArc

◆ CouleurCiel

CouleurCiel

◆ CouleurFond

CouleurFond

◆ CouleurTerre

CouleurTerre

◆ oval

oval

◆ roulis [1/2]

int roulis = 0
static

◆ roulis [2/2]

roulis

◆ RoulisMax

RoulisMax

◆ tangage

int tangage = 0
static

◆ TangageMax

TangageMax

The documentation for this class was generated from the following file: