Professional Documents
Culture Documents
Srinu
Srinu
Mechanical Engineering
By
K.Venkat(22A85A0321)
L.P.Surya teja(22A85A0322)
M.Ganesh(22A85A0323)
M.Naga Srinivasu(22A85A0324)
This is to certify that the Project Report entitled “Currency Converter using
Python” submitted by K.Venkat(22A85A0321),
L.P.SuryaTeja(22A85A0322),M.Ganesh(22A85A0323), M.N.Srinivasu
(22A85A0324) for the award of the degree of Bachelor of Technology in the
Department of Computer Science and Engineering during the academic year
20222023.
External Examiner
DECLARATION
We hereby declare that the project report entitled “Currency Converter using python" submitted by
us to Sri Vasavi Engineering College (Autonomous), Tadepalligudem, affiliated to JNTUK Kakinada
in partial fulfilment of the requirement for the award of the degree of B.Tech in
Mechanical Engineering is a record of Bonafide project work carried out by us under the guidance of
MR.M.D.Nagendra Prasad, Professor. We further declare that the work reported in this project has not
been submitted and will not be submitted, either in part or in full, for the award of any other degree in
this institute or any other institute or University.
Project Associate
K. Venkat(22A85A0321)
L.P. Surya Teja(22A85A0322)
M.Ganesh(22A85A0323)
M.Naga Srinivasu(22A85A0324)
ACKNOWLEDGEMENT
First and foremost, we sincerely salute to our esteemed institute SRI VASAVI ENGINEERING
COLLEGE, for giving us this golden opportunity to fullfil our warm dream to become an engineer.
Our sincere gratitude to our project guide Mr.M.D.Nagendra Prasad Assoc.Professor,
Department of Mechanical Engineering, for her timely cooperation and valuable suggestions while
carrying out this project.
We express our sincere thanks and heartful gratitude to Dr.M.V.Ramesh, Professor & Head of the
Department of Computer Science and Engineering, for permitting us to do our project.
We express our sincere thanks and heartful gratitude to Dr. G.V.N.S.R. Ratnakara Rao, Principal,
for providing a favourable environment and supporting us during the development of this project.
Our special thanks to the management and all the teaching and non-teaching staff members,
Department of Computer Science and Engineering, for their support and cooperation in various ways
during our project work. It is our pleasure to acknowledge the help of all those respected individuals.
We would like to express our gratitude to our parents, friends who helped to complete this project.
Project Associate
K.Venkat(22A85A0321)
L.P. Surya Teja(22A85A0322)
M.Ganesh(22A85A0323)
M.Naga Srinivasu(22A85A0324)
ABSTRACT
2
The "Currency Converter Application" is a user-friendly desktop tool developed in
Python, leveraging the tkinter library for the graphical interface and forex-python for
real-time currency exchange rates. The application allows users to seamlessly convert
monetary amounts between different currencies, providing a hassle-free solution for
individuals dealing with international transactions or travel.
The graphical user interface features labeled input fields for amount entry, dropdown
lists for source and target currencies, and a visually appealing result display area. The
application employs ttkthemes for enhanced styling, including the addition of borders
to labels for improved visual clarity. Error handling mechanisms are incorporated to
notify users of invalid inputs, ensuring a robust and user-friendly experience
One notable feature of the project is its ability to be converted into a stand-alone
executable file using PyInstaller. This enables users to run the application without the
need to install Python or any dependencies, making it easily distributable. The
Currency Converter Application serves as a practical and efficient tool for users
seeking a reliable means to perform currency conversions effortlessly.
CONTENTS
01 . Introduction
02 . Design and implementation
03 . Results
04 . conclusion
05 . Snapshots
06 . Featural scope( reference links )
3
CHAPTER 1
INTRODUCTION
4
1 INTRODUCTION
2 Motivation
2.1 The motivation behind this project is to provide individuals, whether engaged in
international business or planning travel, with a straightforward and accessible tool for
converting monetary values between diverse currencies. The user interface has been
meticulously designed to cater to users of varying technical backgrounds, featuring
intuitive input fields, dropdown lists for currency selection, and an aesthetically
pleasing display area for conversion results. The incorporation of ttkthemes allows for
enhanced styling, contributing to a visually appealing and user-centric design.
5
CHAPTER 2
6
1) Requirements:-
The currency conversion project requires how much amount u want to convert from
one currency to other.It is the only basic requirement needed to our project execution
6) Code:-
import tkinter as tk
7
from tkinter import ttk
CurrencyConverter:
def _init_(self):
self.c = CurrencyRates()
root.iconbitmap("icon1.ico")
from_currency, to_currency):
= amount * exchange_rate
return converted
converted_amount
self.root.title("Currency Converter")
minimum size
self.style.theme_use("clam") #
8
self.converter =
CurrencyConverter()
# Amount
padx=10, pady=10)
Decreased gap
self.from_currency_label.pack(side=tk.LEFT)
self.from_currency_combobox = ttk.Combobox(from_currency_frame,
state="readonly", height=3,style="NoDropdown.TCombobox")
self.from_currency_combobox.pack(side=tk.LEFT)
Currency:",
9
style="MyLabel.TLabel") self.to_currency_label.pack(side=tk.LEFT)
self.to_currency_combobox =
ttk.Combobox(to_currency_frame,
self.to_currency_combobox.pack(side=tk.LEFT)
# Result
f ont=("Helvetica",12,"bold"), style="MyResult.TLabel")
# Convert Button
self.convert_button = ttk.Button(root,text="Convert",
command=self.perform_conversion, style="MyButton.TButton",="hand2")
self.get_currency_list() self.to_currency_list =
self.get_currency_list()
self.from_currency_listbox=tk.Listbox(from_currency_frame,
self.from_currency_listbox.pack(side=tk.LEFT)
10
command=self.from_currency_listbox.yview)
from_currency_scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.from_currency_listbox.config(yscrollcommand=from_currency_scrollbar.set)
self.from_currency_listbox.insert(tk.END, *self.from_currency_list)
self.from_currency_listbox.bind("<<ListboxSelect>>",
self.update_from_combobox)
self.to_currency_listbox=tk.Listbox(to_currency_frame,
self.to_currency_listbox.pack(side=tk.LEFT)
command=self.to_currency_listbox.yview)
to_currency_scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.to_currency_listbox.config(yscrollcommand=to_currency_scrollbar.set)
self.to_currency_listbox.insert(tk.END, *self.to_currency_list)
self.to_currency_listbox.bind("<<ListboxSelect>>", self.update_to_combobox)
'sticky': 'nswe'})],
'sticky': 'nswe'})],
'sticky': 'nswe'})],
11
'sticky': 'nswe'})])
def get_currency_list(self):
return ["USD", "INR", "IDR", "EUR", "GBP", "JPY", "GBP", "BRL", "THB",
"HKD", "AUD", "CAD", "CHF", "CNY", "SEK", "NZD", "BTC"]
selected_index = self.from_currency_listbox.curselection() if
selected_index:
selected_currency = self.from_currency_listbox.get(selected_index[0])
self.from_currency_combobox.set(selected_currency)
selected_index = self.to_currency_listbox.curselection() if
selected_index:
selected_currency = self.to_currency_listbox.get(selected_index[0])
self.to_currency_combobox.set(selected_currency) def
perform_conversion(self):
try:
amount = float(self.amount_entry.get())
= self.to_currency_combobox.get().upper()
12
converted_amount = self.converter.convert(amount, from_currency,
to_currency)
else:
if (from_currency == "BTC" and to_currency != "BTC"):
converted_amount = BtcConverter().convert_btc_to_cur(amount,
to_currency)
converted_amount = BtcConverter().convert_to_btc(amount,
from_currency)
self.result_label.config(
except ValueError:
= CurrencyConverterApp(root)
root.mainloop()
13
7) Test Your Application:
Run your Python file and test the currency converter application.
CHAPTER 3
Result
14
15
CHAPTER 4
CONCLUSION
CONCLUSION:-
16
invalid inputs. As a versatile tool, the project lays a solid foundation for future
enhancements. The potential for incorporating advanced features, such as historical
exchange rate tracking or real-time trend analysis, positions the application as a
dynamic and evolving resource for users engaged in the dynamic landscape of
international finance and travel.
CHAPTER 5
SNAPSHOTS
17
STEP 1 :-Click on RUN
18
“Same process for BITCOIN also”
19
CHAPTER 6
1) Tkinter Documentation:-
https://docs.python.org/3/library/tkinter.html
2)Youtube reference:-
https://youtube.com/playlist?list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&si
=_CuYtTi7U88jf1Ec
20