0% found this document useful (0 votes)
12 views20 pages

Notepad Mini Project Report

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views20 pages

Notepad Mini Project Report

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

NOTEPAD

A MINI PROJECT REPORT


Submitted in partial fulfillment of the Requirements
For the award of Bachelor of Computer Application Degree

LNCT UNIVERSITY,BHOPAL(M.P.)

MINI PROJECT REPORT


Submitted By
UTPAL TIWARI

Under the Guidance of


DIKSHA TRIPATHI

SOCST, BACHELOR OF COMPUTER APPLICATION


LNCT UNIVERSITY, BHOPAL

July-Dec,2023
LNCT UNIVERSITY,BHOPAL
BACHELOR OF COMPUTER APPLICATION

CERTIFICATE

This is to certify that the mini project report entitled “Notepad” submitted by UTPAL
TIWARIhas been carried out under the guidance of DIKSHA TRIPATHI MAM,
Bachelor of computer application, SOCST, LNCT UNIVERSITY, BHOPAL. The project
report is approved for submission requirement for BCA-308, Mini Project in “Python” 3rd
semester in Bachelor of Computer Application, LNCT UNIVERSITY, BHOPAL (M.P.)
during the academic session Jan-June, 2023.

Guided By

DIKSHA TRIPATHI MAM

Forwarded by

Director

SOCST, LNCT UNIVERSIT Y, BHOPAL


LNCT UNIVERSITY, BHOPAL
BACHELOR OF COMPUTER APPLICATION

DECLARATION

I UTPAL TIWARI hereby declare that the project entitled “Notepad”, which is being
submitted as Mini Project of Python in 3rd semester in Bachelor of Computer Application,
LNCT UNIVERSITY, BHOPAL is an authentic record of my genuine work done under the
guidance of DIKSHA TRIPATHI MAM, Bachelor of Computer Application, LNCT UNIVERSITY,
BHOPAL.

UTPAL TIWARI

Date :
LNCT UNIVERSITY, BHOPAL
BACHELOR OF COMPUTER APPLICATION

ACKNOWLEDGEMENT

I express our sincere indebtedness towards our guide DIKSHA TRIPATHI MAM,
Bachelor of Computer Application, LNCT UNIVERSITY, BHOPAL for her
invaluable guidance, suggestions and supervision throughout the work. Without
her kind patronage and guidance the project would not have taken shape. I would
like to express our gratitude and sincere regards to Dr. Alka Gulati for her kind
suggestions, time to time counseling and advices. I would like to thank to our
Director, Dr. Sanjay Bajpai, LNCT UNIVERSITY, BHOPAL for his expert
advice and counseling from time to time. I own sincere thanks to all the faculty
members in the department of SOCST, LNCT UNIVERSITY, BHOPAL for
their kind guidanceand encouragement from time to time.

UTPAL TIWARI

Date :
INTRODUCTION

Notepad is a word processing program, which allows changing of text in a computer file.
Notepad was created by the Microsoft Corporation. It is a text editor, a very simple word
Processor. It has been a part of Microsoft Windows since 1985. Notepad is a text editor, i.e.,
an app specialized in editing plain text. It can edit text files (bearing the ". txt" filename
extension) and compatible formats, such as batch files, INI files, and log files. Notepad
offers only the most basic text manipulation functions, such as finding and replacing text.

➢ Objective behind creating notepad program


1) Create, open, and save text files with Notepad.
2) Use Notepad to make simple text edits.
3) Search and replace text in Notepad documents.
4) Change the font of the text document.
5) Print text files with Notepad.

➢ Software Used to Create Program :-


Python IDLE 3.9.8 version
FLOWCHART OF NOTEPAD:-
CODE OF NOTEPAD

# importing the required libraries


import tkinter
from tkinter import *
from tkinter import messagebox

# setting the initial values of some variables


var = ""
A=0
operator = ""

# defining the function for Button 1


def button_1_is_Clicked():
global var
var = var + "1"
the_data.set(var)

# defining the function for Button 2


def button_2_is_Clicked():
global var
var = var + "2"
the_data.set(var)

# defining the function for Button 3


def button_3_is_Clicked():
global var
var = var + "3"
the_data.set(var)

# defining the function for Button 4


def button_4_is_Clicked():
global var
var = var + "4"
the_data.set(var)

# defining the function for Button 5


def button_5_is_Clicked():
global var
var = var + "5"
the_data.set(var)
# defining the function for Button 6
def button_6_is_Clicked():
global var
var = var + "6"
the_data.set(var)

# defining the function for Button 7


def button_7_is_Clicked():
global var
var = var + "7"
the_data.set(var)

# defining the function for Button 8


def button_8_is_Clicked():
global var
var = var + "8"
the_data.set(var)

# defining the function for Button 9


def button_9_is_Clicked():
global var
var = var + "9"
the_data.set(var)

# defining the function for Button 0


def button_0_is_Clicked():
global var
var = var + "0"
the_data.set(var)

# defining the function for Button +


def button_Add_is_Clicked():
global A
global var
global operator
A = float(var)
operator = "+"
var = var + "+"
the_data.set(var)

# defining the function for Button -


def button_Sub_is_Clicked():
global A
global var
global operator
A = float(var)
operator = "-"
var = var + "-"
the_data.set(var)

# defining the function for Button *


def button_Mul_is_Clicked():
global A
global var
global operator
A = float(var)
operator = "*"
var = var + "*"
the_data.set(var)

# defining the function for Button /


def button_Div_is_Clicked():
global A
global var
global operator
A = float(var)
operator = "/"
var = var + "/"
the_data.set(var)

# defining the function for Button =


def button_Equal_is_Clicked():
global A
global var
global operator
A = float(var)
operator = "="
var = var + "="
the_data.set(var)

# defining the function for Button C


def button_C_is_Clicked():
global A
global var
global operator
var = ""
A=0
operator = ""
the_data.set(var)

# defining the function to display result


def res():
global A
global operator
global var
var2 = var
if operator == "+":
a = float(([Link]("+")[1]))
x=A+a
the_data.set(x)
var = str(x)
elif operator == "-":
a = float(([Link]("-")[1]))
x=A-a
the_data.set(x)
var = str(x)
elif operator == "*":
a = float(([Link]("*")[1]))
x=A*a
the_data.set(x)
var = str(x)
elif operator == "/":
a = float(([Link]("/")[1]))
if a == 0:
[Link]("Division by 0 Not Allowed.")
A == ""
var = ""
the_data.set(var)
else:
x = float(A/a)
the_data.set(x)
var = str(x)

# creating an object of the Tk() class


guiWindow = [Link]()
# setting the size of the window
[Link]("320x500+400+400")
# disabling the resize option for better UI
[Link](0, 0)
# setting the title of the Calculator window
[Link]("GUI Calculator - [Link]")

# creating the label for the window


the_data = StringVar()
guiLabel = Label(
guiWindow,
text = "Label",
anchor = SE,
font = ("Cambria Math", 20),
textvariable = the_data,
background = "#ffffff",
fg = "#000000"
)
# using the pack() method
[Link](expand = True, fill = "both")

# creating the frames for the buttons


# first frame
frameOne = Frame(guiWindow, bg = "#000000")
[Link](expand = True, fill = "both") # frame can expand if it gets some space

# second frame
frameTwo = Frame(guiWindow, bg = "#000000")
[Link](expand = True, fill = "both")

# third frame
frameThree = Frame(guiWindow, bg = "#000000")
[Link](expand = True, fill = "both")

# fourth frame
frameFour = Frame(guiWindow, bg = "#000000")
[Link](expand = True, fill = "both")

# creating buttons for each frame


# buttons for first frame
# button 1
buttonONE = Button(
frameOne,
text = "1",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_1_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button 2
buttonTWO = Button(
frameOne,
text = "2",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_2_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button 3
buttonTHREE = Button(
frameOne,
text = "3",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_3_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button C
buttonC = Button(
frameOne,
text = "C",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_C_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# buttons for second frame


# button 4
buttonFOUR = Button(
frameTwo,
text = "4",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_4_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button 5
buttonFIVE = Button(
frameTwo,
text = "5",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_5_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button 6
buttonSIX = Button(
frameTwo,
text = "6",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_6_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button +
buttonADD = Button(
frameTwo,
text = "+",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_Add_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# buttons for third frame


# button 7
buttonSEVEN = Button(
frameThree,
text = "7",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_7_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button 8
buttonEIGHT = Button(
frameThree,
text = "8",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_8_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button 9
buttonNINE = Button(
frameThree,
text = "9",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_9_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button -
buttonSUB = Button(
frameThree,
text = "-",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_Sub_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# buttons for fourth frame


# button 0
buttonZERO = Button(
frameFour,
text = "0",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_0_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button *
buttonMUL = Button(
frameFour,
text = "*",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_Mul_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")
# button /
buttonDIV = Button(
frameFour,
text = "/",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = button_Div_is_Clicked
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# button +
buttonEQUAL = Button(
frameFour,
text = "=",
font = ("Cambria", 22),
relief = GROOVE,
border = 0,
command = res
)
# placing buttons side by side
[Link](side = LEFT, expand = True, fill = "both")

# running the GUI


[Link]()
OUTPUT:-
BIBLIOGRAPHY

1) Yashwant Kanetkar: “Let Us PYTHON”, 17th Edition.

2) Balaguruswamy E. “Programming in python”, Edition 7th Mc Graw Hill.

3) Learn Python Programming – Programiz “ [Link] › pyhton-


programming”

4) [Link]

5) [Link] unit with python .co

You might also like