Holistic Lesson Plan - Interactive Python Calculator With Tkinter
Holistic Lesson Plan - Interactive Python Calculator With Tkinter
import tkinter as tk
window = tk.Tk()
window.title("My First Interactive Calculator")
window.configure(bg="#2e2e2e") #
Background color
Create Buttons:
def button_clear():
display.delete(0, tk.END) # Use tk.END to
delete everything
Create equal button with Error exception
def button_equal():
try:
except:
display.delete(0, tk.END)