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.
Version imprimable
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:
1
2
3
4
5
6
7
8 >>> import tkinter as tk >>> app = tk.Tk() >>> app.title() 'tk' >>> app.title('foo') '' >>> app.title() 'foo'
- WCitation:
wm 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.
Ok, merci beaucoup!
Simac.