⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des méthodes
tkinter.bell ( )
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des méthodes
tkinter.bell ( )
DESCRIPTION.
Produit un signal sonore, selon le système et la configuration, mais généralement un "bip".
SYNTAXE.
widget.bell ( )
widget ⇨ controle quelconque de l'interface [ OBLIGATOIRE ]
.bell ( ) ⇨ appel de la méthode [ OBLIGATOIRE ]
REMARQUE.
Par convention, on utilise la fenêtre créée avec tkinter.Tk ( ) pour l'utilisation de cette méthode.
EXEMPLE.
import tkinter
TKI_Principal = tkinter.Tk ( )
BUT_Quitter = tkinter.Button ( TKI_Principal , text = "Quitter" , command = TKI_Principal.destroy )
BUT_Biper = tkinter.Button ( TKI_Principal , text = "bip" , command = TKI_Principal.bell )
BUT_Biper.pack ( )
BUT_Quitter.pack ( )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de