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.
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager