Bonjour ,
Je cherche à obtenir la résolution de mon écran.
Je lance ce script :
En réponse, j'ai :Code:
1
2
3
4
5
6
7
8
9 from tkinter import * if __name__ == '__main__': root = Tk() print(root.winfo_screenwidth()) print(root.winfo_screenheight())
1536
864
Or j'ai réglé ma résolution écran à 1920 x 1080.
Qu'est ce qui cloche?
Merci,
Nico