enora.delmas 3 months ago
parent
commit
4afa50a4a1
  1. 9
      calculatrice.py

9
calculatrice.py

@ -6,8 +6,13 @@ class Fenetre(tk.Tk):
tk.Tk.__init__(self) tk.Tk.__init__(self)
self.title("Calculatrice") self.title("Calculatrice")
self.geometry("400x600") 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 = Fenetre()
window.mainloop() window.mainloop()
Loading…
Cancel
Save