Ordinateur de bord pour voiture de collection 7.1
|
Public Member Functions | |
def | __init__ (self, ModuleParam, VersionProg, ListeClVar, ListeActions, LListeOnglets, LListeBoutons, LListeCadrans) |
The constructor. More... | |
def | ActionBouton (self, BoutonName) |
execute the action of the named button defined in module initialisation (by FuncCal = XXX) More... | |
def | AddBouton (self, bouton) |
ajoute un bouton dans l'IHM More... | |
def | AddCadran (self, cadran) |
def | Alarme (self, MonAlarme=None) |
display a new alarm or reset displayed alarmes. More... | |
def | ChangeFrame (self, increment=1) |
change the frame for the next or the previous (example : with keys) More... | |
def | Get_ListeActions (self) |
return the global action for ListeActions. More... | |
def | Luminosite_Set (self, coef=1) |
augmentation ou diminution de la luminosité : More... | |
def | Luminosite_Switch (self, JourNuit=False) |
lit la pref de la luminosité et l'applique More... | |
def | Quitter (self) |
def | RefreshIHM (self) |
def | SelectFrame (self, NomOnglet, Alarme=False) |
select neamed frame. More... | |
def | TurnPwrScreen (self, OnOff='off') |
Public Attributes | |
ListeActions | |
Luminosite_ModeNuit | |
LuminositeVal | |
MonCanvas | |
parent | |
VersionProg | |
Static Public Attributes | |
AlarmeActive = None | |
BoutonAlarme = None | |
dictionary | BoutonList = {} |
buzzer = None | |
dictionary | CadransListe = {} |
dictionary | FrameList = {} |
dictionary | LabelList = {} |
ListeClVar = None | |
bool | Luminosite_ModeNuit = False |
list | LuminositeVal = [120,50] |
Onglets = None | |
dictionary | OngletsNoms = {} |
bool | SonnerieActivee = False |
dictionary | VoyantListe = {} |
Environement graphique. Cette fenetre n'est construite qu'une seule fois, voir main.py pour le détail. @date - 5.2 21/12/2018 Modification : - déplacement du code suite création AddBouton, AddLabelDef, AddCadran - 6.2 14 juillet 2020 Modification : - added __keypressed() and ACTIONKEYS in IHM_param.py - added sorted Notebook frame frome fram button index "Frame01", "Frame02", …
def __init__ | ( | self, | |
ModuleParam, | |||
VersionProg, | |||
ListeClVar, | |||
ListeActions, | |||
LListeOnglets, | |||
LListeBoutons, | |||
LListeCadrans | |||
) |
The constructor.
def ActionBouton | ( | self, | |
BoutonName | |||
) |
execute the action of the named button defined in module initialisation (by FuncCal = XXX)
BoutonName | (string) : name of the button |
def AddBouton | ( | self, | |
bouton | |||
) |
ajoute un bouton dans l'IHM
bouton | (BtnVnt) : instance of BtnVnt class |
def AddCadran | ( | self, | |
cadran | |||
) |
def Alarme | ( | self, | |
MonAlarme = None |
|||
) |
display a new alarm or reset displayed alarmes.
MonAlarme | (Alarme, optional) : must be a class Alarme ; see alarmes.py if missing, delete last displayed alarme. |
def ChangeFrame | ( | self, | |
increment = 1 |
|||
) |
change the frame for the next or the previous (example : with keys)
increment | to increment (1) or decrement (-1) the frame |
def Luminosite_Set | ( | self, | |
coef = 1 |
|||
) |
augmentation ou diminution de la luminosité :
coef | (int) coeficient à appliquer à la luminosité de l'écran. |
def Luminosite_Switch | ( | self, | |
JourNuit = False |
|||
) |
lit la pref de la luminosité et l'applique
def Quitter | ( | self | ) |
ferme les sous objects actifs
def RefreshIHM | ( | self | ) |
rafraichissement des widgets date : - 7.1 january 2022 : add ENABLE_NEEDLE
def SelectFrame | ( | self, | |
NomOnglet, | |||
Alarme = False |
|||
) |
select neamed frame.
NomOnglet | (string) : name of new frame to display |
Alarme | (bool, optional): if true, the timer will set to return at default frame. This param disable the frame change at start |
def TurnPwrScreen | ( | self, | |
OnOff = 'off' |
|||
) |
Eteint ou allume l'écran @parm OnOff (string) : doit être 'on' ou 'off' ('off' par défaut)
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
ListeActions |
|
static |
|
static |
Luminosite_ModeNuit |
|
static |
LuminositeVal |
MonCanvas |
|
static |
|
static |
parent |
|
static |
VersionProg |
|
static |