Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

bg fenetre (root)

2 réponses
Avatar
alainL
Bonsoir,
Je parviens a changer la taille et le titre :-))) mais pas la couleur de
fond :-(((.

from Tkinter import *
fen1=Tk()
fen1.title="xxxx"
.....
mais fen1.bg n'a pas l'air d'être bon ! (ni color, ni bgcolor, ni....)

Comment faire SVP ?
Merci
alain

2 réponses

Avatar
Laurent Pointal
Le Sun, 25 Nov 2007 19:26:58 +0100, alainL a écrit :

Bonsoir,
Je parviens a changer la taille et le titre :-))) mais pas la couleur de
fond :-(((.

from Tkinter import *
fen1=Tk()
fen1.title="xxxx"
.....
mais fen1.bg n'a pas l'air d'être bon ! (ni color, ni bgcolor,
ni....)

Comment faire SVP ?
Merci
alain



Ca ne serait pas plutôt fen1.configure(bg=...)


--
Laurent POINTAL -

Avatar
Laurent Pointal
Le Sun, 25 Nov 2007 21:07:51 +0000, Laurent Pointal a écrit :

Le Sun, 25 Nov 2007 19:26:58 +0100, alainL a écrit :

Bonsoir,
Je parviens a changer la taille et le titre :-))) mais pas la couleur
de fond :-(((.

from Tkinter import *
fen1=Tk()
fen1.title="xxxx"
.....
mais fen1.bg n'a pas l'air d'être bon ! (ni color, ni bgcolor,
ni....)

Comment faire SVP ?
Merci
alain



Ca ne serait pas plutôt fen1.configure(bg=...)



Un complément:
http://www.limsi.fr/Individu/pointal/python.html#liens-graph-tkinter

Et en cherchant un peu:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/std-attrs.html
http://infohost.nmt.edu/tcc/help/pubs/tkinter/universal.html


A+



--
Laurent POINTAL -