Posts

Showing posts from June, 2022

Advanced Calculator - Python tkinter GUI application - Mini projects

Image
from tkinter import * from tkinter import ttk from ttkbootstrap import Style import math window=Tk() window.geometry("600x550+350+150") window.resizable(FALSE,FALSE) window.title("AdvCalc") style=Style(theme="lumen") style.configure('custom.TButton', background='yellow') window = style.master #titleimage=PhotoImage(file="photo/titlesym.png") #window.iconphoto(False,titleimage) tabs=ttk.Notebook(window,width=500,height=500) tabs.pack(fill=BOTH,expand=TRUE) tab1=Frame(tabs) tab2=Frame(tabs) tabs.add(tab1,text="Simple Calculator") tabs.add(tab2,text="Advanced Calculator") ####################simple calculator############# #####################ENTRY################# entry=Entry(window,font=("verdana 14 bold"),width=28,bd=10,justify=RIGHT) entry.insert(0,'O') entry.place(x=90,y=60) entry.config(state="normal") entry1=Entry(tab2,font=("verdana 14 bold"),width=22,bd=10,justify=RIG...