Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up
Job Resume Template
In this page Age Calculator project is a desktop application which is developed in Python platform. This Python project with tutorial and guide for developing a code. Age Calculator is a open source you can Download zip and edit as per you need. If you want more latest Python projects here. This is simple and basic level small project for learning purpose. Also you can modified this system as per your requriments and develop a perfect advance level project. This project can edit using a Python IDE. Following Python project contains all the important features which can be in use for the BE, BTech, MCA, BCA, Engineering, Bs.CS, IT, Software Engineering, Computer Science students and Devloper for their college projects. This script developed by Suraj Ghosh. This desktop application 100% working smooth without any bug. It is developed using Python tkinter and Database mysql. This software code helpful in academic projects and research paper for final year computer science. To download Age Calculator project in Python with source code files, please scroll down to the bottom of this page for the Download Zip file of source code button.
| project Name | Age Calculator |
| Project Complexity | advanced |
| Duration | 15 Days |
| project ID | 3759 |
| Developer Name | Suraj Ghosh |
| Publish Date | June 8, 2020 |
| project Platform | Python |
| Programming Language | For this particular Python project, Python tkinter is required |
| Front End | GUI for desktop apps PyQT, Tkinter, Kivy, wxPython, Bottle/ Web apps - HTML, CSS, JS, Bootstrap |
| Back End | Python, MySQL, Oracle, MariaDB, PostgreSQL, MongoDB, Microsoft SQL Server |
| IDE Tool | Python |
| Database Integration | mysql |
| project Type | desktop Application |
| No of project Download | 64 |
| project Total View | 2785 |
| Today Trends | 315 |
| Current Month Trends | 341 |
| Last Month Trends | 51 |
You have any error or you don't understand project follow or any other problem.You can ask question. you know any answer or solution then give a answer and help other student.Complete they project perfectly.
Click the Download Button Below to Start Downloading
Download Age Calculator source code at free of cost. Download link provide below.
Download CodeAfter you finish downloading the project, unzip the project file.
# import all functions from the tkinter
from tkinter import *
#import Message Box module
from tkinter import messagebox
#import the Themed tk module
from tkinter import ttk
#import the time date module
from datetime import date
# Function for clearing the
# contents of all text entry boxes
def clearAll() :
# deleting the content from the entry box
dayField.delete(0, END)
monthField.delete(0, END)
yearField.delete(0, END)
givenDayField.delete(0, END)
givenMonthField.delete(0, END)
givenYearField.delete(0, END)
rsltDayField.delete(0, END)
rsltMonthField.delete(0, END)
rsltYearField.delete(0, END)
# function for checking error
def checkError() :
# if any of the entry field is empty
# then show an error message and clear
# all the entries
if (dayField.get() == "" or monthField.get() == ""
or yearField.get() == "" or givenDayField.get() == ""
or givenMonthField.get() == "" or givenYearField.get() == "") :
# show the error message
messagebox.showerror("Input Error")
# clearAll function calling
clearAll()
return -1
#Function to Calculate the age
def calculateAge():
#check for error
value = checkError()
#if there is a error then value will be - 1
if value==-1:
return
else:
# take a value from the respective entry boxes
# get method returns current text as string
birth_day = int(dayField.get())
birth_month = int(monthField.get())
birth_year = int(yearField.get())
given_day = int(givenDayField.get())
given_month = int(givenMonthField.get())
given_year = int(givenYearField.get())
# if birth date is greater then given birth_month
# then donot count this month and add 30 to the date so
# as to subtract the date and get the remaining days
month =[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if (birth_day > given_day):
given_month = given_month - 1
given_day = given_day + month[birth_month-1]
# if birth month exceeds given month, then
# donot count this year and add 12 to the
# month so that we can subtract and find out
# the difference
if (birth_month > given_month):
given_year = given_year - 1
given_month = given_month + 12
# calculate day, month, year
calculated_day = given_day - birth_day;
calculated_month = given_month - birth_month;
calculated_year = given_year - birth_year;
# calculated day, month, year write back
# to the respective entry boxes
# insert method inserting the
# value in the text entry box.
rsltDayField.insert(10, str(calculated_day))
rsltMonthField.insert(10, str(calculated_month))
rsltYearField.insert(10, str(calculated_year))
#The Driver Code
if __name__ == '__main__':
#Creating the GUI window
root = Tk()
#Setting the background color
root.config(background='light green')
#Setting the name of the GUI applications
root.title('Age Calculator')
#Setting the geometry of the GUI application
root.geometry('525x260')
#Create the Date of birth : Label
dob = Label(root, bg = 'blue')
#Create the Given Date : Label
givenDate = Label(root, text='CURRENT DATE', bg = 'lightblue')
#Create the Given Date : Label
birthDate = Label(root, text='BIRTH DATE', bg = 'lightblue')
# Create a Day : label
day = Label(root, text = 'Day = ', bg = 'light green')
# Create a Month : label
month = Label(root, text = 'Month = ', bg = 'light green')
# Create a Year : label
year = Label(root, text = 'Year = ', bg = 'light green')
# Create a Given Day : label
givenDay = Label(root, text = "Current Day = ", bg = "light green")
# Create a Given Month : label
givenMonth = Label(root, text = "Current Month = ", bg = "light green")
# Create a Given Year : label
givenYear = Label(root, text = "Current Year = ", bg = "light green")
# Create a Years : label
rsltYear = Label(root, text = "Years", bg = "light green")
# Create a Month : label
rsltMonth = Label(root, text = "Month", bg = "light green")
# Create a Days : label
rsltDay = Label(root, text = "Days", bg = "light green")
# Create a text entry box for filling or typing the information.
dayField = Entry(root)
monthField = Entry(root)
yearField = Entry(root)
givenDayField = Entry(root)
givenMonthField = Entry(root)
givenYearField = Entry(root)
rsltYearField = Entry(root)
rsltMonthField = Entry(root)
rsltDayField = Entry(root)
# rsltYearField = Entry(root)
# rsltMonthField = Entry(root)
# rsltDayField = Entry(root)
# Create a Resultant Age Button and attached to calculateAge function
resultantAge = Button(root, text = "CALCULATE AGE", fg = "Black", bg = "Red", command = calculateAge)
# Create a Clear All Button and attached to clearAll function
clearAllEntry = Button(root, text = "Clear All Output", fg = 'Black', bg = 'Red', command = clearAll)
# grid method is used for placing
# the widgets at respective positions
# in table like structure .
dob.grid(row = 0, column = 1)
day.grid(row = 1, column = 0)
dayField.grid(row = 1, column = 1)
month.grid(row = 2, column = 0)
monthField.grid(row = 2, column = 1)
year.grid(row = 3, column = 0)
yearField.grid(row = 3, column = 1)
givenDate.grid(row = 0, column = 4)
birthDate.grid(row = 0, column = 1)
givenDay.grid(row = 1, column = 3)
givenDayField.grid(row = 1, column = 4)
givenMonth.grid(row = 2, column = 3)
givenMonthField.grid(row = 2, column = 4)
givenYear.grid(row = 3, column = 3)
givenYearField.grid(row = 3, column = 4)
resultantAge.grid(row = 4, column = 2)
rsltYear.grid(row = 5, column = 2)
rsltYearField.grid(row = 6, column = 2)
rsltMonth.grid(row = 7, column = 2)
rsltMonthField.grid(row = 8, column = 2)
rsltDay.grid(row = 9, column = 2)
rsltDayField.grid(row = 10, column = 2)
clearAllEntry.grid(row = 12, column = 2)
# Start the GUI
root.mainloop()
No Database is used.
Downloading the Age Calculator project from Kashipara is a best choice for students, beginners, and developers looking for a reliable, well documented, and ready to use project in Python.
Creating diagrams like Class Diagrams, Use Case Diagrams, Entity–Relationship (ER) Diagrams, Data Flow Diagrams (DFD), and Sequence Diagrams is essential for designing and understanding software systems. Here’s a proper guide to help you get started with each type:
What our programmer says about project