Methode get() qui ne renvoie rien
Bonjour,
J'ai un soucis avec tkinter et sqlite3. J'utilise la méthode get() pour récupérer la valeur récupérée depuis tk.entry(root) mais je n'obtiens rien.
Voici le bout du programme :
entry_raison_soc = tk.Entry(root)
entry_raison_soc.pack()
raison_soc = entry_raison_soc.get()
#pour tester la valeur
print("raison_soc = " + raison_soc)
Merci d'avance
Macintosh / Safari 17.4.1
A voir également:
- Wmic path softwarelicensingservice get oa3xoriginalproductkey not working
- Get data back - Télécharger - Récupération de données
- Get youtube - Télécharger - Téléchargement & Transfert
- Cast2tv.net not working hotel - Forum TV & Vidéo
- Get adobe flash player - Télécharger - Divers Web & Internet
- We are working on it and we'll get it fixed as soon as we can. ✓ - Forum Facebook
2 réponses
yg_be
Messages postés
23541
Date d'inscription
Statut
Contributeur
Dernière intervention
Ambassadeur
1 586
bonjour,
Je me demande si tu appelles le get() au bon moment.
Difficile à déterminer si tu ne partages pas ton programme complet.