{"id":19083275,"url":"https://github.com/psingh12354/calculator_gui_by_tkinter","last_synced_at":"2025-10-10T23:33:54.373Z","repository":{"id":185587905,"uuid":"279862847","full_name":"Psingh12354/CALCULATOR_GUI_BY_TKINTER","owner":"Psingh12354","description":"This is my simple GUI based calculator that can take 2 input by user and perform some basic kind of operations such as addition subtraction and other 2","archived":false,"fork":false,"pushed_at":"2020-07-21T12:12:59.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T20:43:59.036Z","etag":null,"topics":["addition-subtraction","calculator","calculator-gui","tkinter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Psingh12354.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-07-15T12:30:57.000Z","updated_at":"2020-10-12T08:12:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"70554eb7-12d6-47e9-b2fc-2c37934f9ce4","html_url":"https://github.com/Psingh12354/CALCULATOR_GUI_BY_TKINTER","commit_stats":null,"previous_names":["psingh12354/calculator_gui_by_tkinter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FCALCULATOR_GUI_BY_TKINTER","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FCALCULATOR_GUI_BY_TKINTER/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FCALCULATOR_GUI_BY_TKINTER/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FCALCULATOR_GUI_BY_TKINTER/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Psingh12354","download_url":"https://codeload.github.com/Psingh12354/CALCULATOR_GUI_BY_TKINTER/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240133141,"owners_count":19752993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addition-subtraction","calculator","calculator-gui","tkinter"],"created_at":"2024-11-09T02:46:47.001Z","updated_at":"2025-10-10T23:33:49.332Z","avatar_url":"https://github.com/Psingh12354.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003eCALCULATOR_GUI_BY_TKINTER\u003c/h1\u003e\nThis is my simple GUI based calculator that can take 2 input by user and perform some basic kind of operations such as addition subtraction and other 2\nClick on the link to get the source code \n\u003cp\u003eClick here \u003ca href=\"https://github.com/Psingh12354/CALCULATOR_GUI_BY_TKINTER/blob/master/CalculatorWorking.py\"\u003eLink\u003c/a\u003e\u003cp\u003e\n\n## Source Code\n```\n  \nfrom tkinter import *\ndef btnClick(numbers):\n    global operator\n    operator=operator+str(numbers)\n    text_Input.set(operator)\ndef btnClearDisplay():\n    global operator\n    operator=\"\"\n    text_Input.set(\"\")\ndef btnEqualsInput():\n    global operator\n    sumup=str(eval(operator))\n    text_Input.set(sumup)\n    operator=\"\"\n\nroot=Tk()\nroot.title(\"Calculator\")\noperator=\"\"\ntext_Input = StringVar()\ntxtDislay=Entry(root,font=('arial',20,'bold'), textvariable=text_Input,bd=30,insertwidth=4,\n                bg=\"burlywood1\",justify='right',).grid(columnspan=4)\nbtn7=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"7\",command=lambda : btnClick(7),bg=\"gray\").grid(row=1,column=0)\nbtn8=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"8\",command=lambda : btnClick(8),bg=\"gray\").grid(row=1,column=1)\nbtn9=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"9\",command=lambda : btnClick(9),bg=\"gray\").grid(row=1,column=2)\nAddition=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"+\",command=lambda : btnClick(\"+\"),bg=\"gray\").grid(row=1,column=3)\n\nbtn4=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"6\",command=lambda : btnClick(4),bg=\"gray\").grid(row=2,column=0)\nbtn5=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"6\",command=lambda : btnClick(5),bg=\"gray\").grid(row=2,column=1)\nbtn6=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"6\",command=lambda : btnClick(6),bg=\"gray\").grid(row=2,column=2)\nSubtraction=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"-\",command=lambda : btnClick(\"-\"),bg=\"gray\").grid(row=2,column=3)\n\n\nbtn3=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"3\",bg=\"gray\",command=lambda : btnClick(3)).grid(row=3,column=0)\nbtn2=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"2\",command=lambda : btnClick(2),bg=\"gray\").grid(row=3,column=1)\nbtn1=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"1\",command=lambda : btnClick(1),bg=\"gray\").grid(row=3,column=2)\nMultiplication=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"x\",command=lambda : btnClick(\"*\"),bg=\"gray\").grid(row=3,column=3)\n\nbtn0=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"0\",bg=\"gray\",command=lambda : btnClick(0)).grid(row=4,column=0)\nbtnClear=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"C\",bg=\"gray\",command=btnClearDisplay).grid(row=4,column=1)\nbtnEquals=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"=\",bg=\"gray\",command=btnEqualsInput).grid(row=4,column=2)\nDivision=Button(root,padx=16,pady=16,bd=8,fg=\"black\",font=('arial',20,'bold'),\n            text=\"/\",command=lambda : btnClick(\"/\"),bg=\"gray\").grid(row=4,column=3)\nroot.mainloop()\n```\nYou can use this source code on your python platform.\n\n### Thank You\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsingh12354%2Fcalculator_gui_by_tkinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsingh12354%2Fcalculator_gui_by_tkinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsingh12354%2Fcalculator_gui_by_tkinter/lists"}