Python Tkinter prend en charge un certain nombre de curseurs de souris différents disponibles. Le graphique exact peut varier en fonction de votre système d'exploitation.
Voici la liste des cursor pris en charge par la bibliothèque Tkinter:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
"arrow" "circle" "clock" "cross" "dotbox" "exchange" "fleur" "heart" "heart" "man" "mouse" "pirate" "plus" "shuttle" "sizing" "spider" "spraycan" "star" "target" "tcross" "trek" "watch" |
Exemple
1 2 3 4 5 6 7 8 9 |
# coding: utf-8 from tkinter import * root= Tk() root.geometry("400x300") T = Text(root , height = 10 , width = 30 , cursor="plus") T.insert(1.0, "Option cursor pour un widget Text tkinter ") T.pack() root.mainloop() |
Younes Derfoufi
CRMEF OUJDA
Acheter sur Très Facile !
-
Promo !
TP-Link Routeur WiFi 6 Archer AX18** WiFi 6 nouvelle génération
Le prix initial était : € 40,00.€ 35,00Le prix actuel est : € 35,00. Acheter le produit -
Guide Raspberry Pi - Pas à pas pour débutant
€ 14,00 Acheter le livre -
Maitriser les fondamentaux de l'intelligence artificielle avec python
€ 19,00 Acheter le livre
2 thoughts on “L'option cursor d'un widget Text Tkinter”