Bonsoir,

je débute en python.

La FAQ propose
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
import tkinter.filedialog   'Ajouté
'import tkinter    ne fonctionne pas non pus
 
tkFileDialog.askopenfilename(filetypes = [("All", "*"),("Fichiers Python","*.py;*.pyw")]))
J'obtiens :
Traceback (most recent call last):
File "C:\Users\oly\Desktop\Longueur.py", line 3, in <module>
tkFileDialog.askopenfilename(filetypes = [("All", "*"),("Fichiers Python","*.py;*.pyw")])
NameError: name 'tkFileDialog' is not defined

Où vais-je trouver cette fonction ?

Merci.