This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports tkinter and constants | |
import tkinter | |
from tkinter.constants import * | |
# addition function | |
def add(): | |
a = float(num1In.get("1.0",END)) | |
b = float(num2In.get("1.0",END)) | |
ansOut['text'] = str(a + b) |