CanvasSwitch

class labpyproject.apps.labpyrinthe.gui.skinTkinter.uitools.CanvasSwitch(parent, Mngr, skin, name, switch, bgcolor)[source]

Bases : tkinter.Canvas, labpyproject.apps.labpyrinthe.gui.skinBase.interfaces.AbstractSwitch

Implémentation graphique d’un bouton ou checkbutton

Constructeur

  • Mngr : référence à CommandeFrame

  • name : nom connu du skin pour retourner les images associées

  • switch : boolean indique si le bouton se comporte comme un checkbutton

Methods Summary

get_state()

Retourne l’état du bouton

is_switch()

Indique si le bouton se comporte comme un switch

set_state(state)

Modifie l’état du bouton

Methods Documentation

get_state()[source]

Retourne l’état du bouton

is_switch()[source]

Indique si le bouton se comporte comme un switch

set_state(state)[source]

Modifie l’état du bouton