1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
fenetre = Tix.Toplevel(objet)
fenetre.title(titre)
top = Tix.Frame (fenetre)
msg = Tix.Message (top, relief = Tix.FLAT, width = 300, padx = 10, pady = 10, anchor = Tix.N, text = texte)
bot = Tix.Frame (fenetre)
boxO = Tix.Button (bot , text = LABEL_OUI[langue], width = 10, command = lambda fenetre = fenetre , param = param, fct = fctoui : fct (param, fenetre))
boxN = Tix.Button (bot , text = LABEL_NON[langue], width = 10, command = lambda fenetre = fenetre , param = param, fct = fctnon : fct (param, fenetre))
top.propagate ()
#disposition
msg.pack (fill = Tix.X)
boxO.pack (side = Tix.LEFT, padx = 5, pady = 5)
boxN.pack (side = Tix.RIGHT, padx = 5, pady = 5)
top.pack (expand = 1, fill = Tix.X)
bot.pack (expand = 1, fill = Tix.BOTH) |
Partager