diff --git a/calculatrice.py b/calculatrice.py index ddf1f22..d315253 100644 --- a/calculatrice.py +++ b/calculatrice.py @@ -6,8 +6,13 @@ class Fenetre(tk.Tk): tk.Tk.__init__(self) self.title("Calculatrice") self.geometry("400x600") - self.configure(bg='white') - + self.configure(bg='pink') + tk.Canvas(self, width=350, height=175, bg='ivory').pack(side=TOP, padx=5, pady=25) + self.frame = tk.Frame(self, bg='pink') + self.entree = tk.Entry(self.frame, width=30) + self.entree.pack(side=TOP, anchor='n', padx = 5, pady = 100) + self.bouton = tk.Button(self.frame, text="Calculer", bg='white').pack(anchor = 's', padx = 100, pady = 10) + self.frame.pack(padx = 5, pady =40) window = Fenetre() window.mainloop() \ No newline at end of file