Bonjour, je me demandais si il y avais un moyen d'obtenir le titre de ma fenêtre Tkinter. Existe-t-il une fonction qui permette cela?
Merci.
Simac.
Bonjour, je me demandais si il y avais un moyen d'obtenir le titre de ma fenêtre Tkinter. Existe-t-il une fonction qui permette cela?
Merci.
Simac.
Salut,
note: c'est pareil avec Tkinter (Python2) car c'est le comportement de la commande Tk wm_title:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 >>> import tkinter as tk >>> app = tk.Tk() >>> app.title() 'tk' >>> app.title('foo') '' >>> app.title() 'foo'
- Wwm title window ?string?
If string is specified, then it will be passed to the window manager for use as the title for window (the window manager should display this string in window's title bar). In this case the command returns an empty string. If string is not specified then the command returns the current title for the window. The title for a window defaults to its name.
Partager