Making GUI Calculator in Tkinter Python
from tkinter import * abdur = Tk () abdur . geometry ( "480x600" ) abdur . minsize ( 480 , 600 ) abdur . maxsize ( 480 , 600 ) abdur . wm_iconbitmap ( "calc.ico" ) abdur . title ( "Calculator - Made by AbdurCodes" ) def calc ( event ): global entry_val btext = event .widget.cget( "text" ) try : if btext == "=" : if entry_val . get (). isdigit (): value = int ( entry_val . get ()) else : value = eval ( screen . get ()) entry_val . set ( value ) screen . update () ...