Bonjour,
Il est dit dans cette partie de la FAQ:
De manière très simple, en appliquant l'instruction root.wm_state(newstate="zoomed"), vous afficherez la fenêtre principale en plein écran. Cette instruction ne fonctionne que sous windows
N'est il pas plus universel d'utiliser attributes/wm_attributes ?
root.attributes("-fullscreen", 1)
1 2 3 4 5 6 7 8 9
| >>> try:
... import tkinter as Tk
... except:
... import Tkinter as Tk
...
>>> root = Tk.Tk()
>>> root.attributes()
('-alpha', 1.0, '-topmost', 0, '-zoomed', 0, '-fullscreen', 0, '-type', '')
>>> root.attributes('-fullscreen', 1) |
@+
Partager