Skip to content

Commit e900385

Browse files
committed
Many More Projects
1 parent 3b9c5ee commit e900385

File tree

1,533 files changed

+2966
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,533 files changed

+2966
-0
lines changed

Billing-System/Bill.PNG

85.7 KB
Loading

Billing-System/billing_system.py

+421
Large diffs are not rendered by default.

Cafe-Management-System/cafe-management.py

+390
Large diffs are not rendered by default.

Cafe-Management-System/cafe.png

4.45 KB
Loading

Cafe-Management-System/false.png

436 Bytes
Loading

Calculator-GUI/calc.py

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#importing modules
2+
import tkinter as tk
3+
from tkinter import *
4+
#defining attributes of main window
5+
root = tk.Tk()
6+
root.geometry("170x230")
7+
root.title("Calculator")
8+
root.maxsize(170,230)
9+
root.minsize(170,230)
10+
11+
#Entry Widgets to show calculations
12+
inp = Entry(root,width=16,borderwidth=3,relief=RIDGE)
13+
inp.grid(pady=10,row=0,sticky="w",padx=15)
14+
15+
16+
# <==================== Button Operation code starts here.. ==============>
17+
18+
19+
def result():
20+
try:
21+
22+
if inp.get() == "":
23+
inp.insert("end","error")
24+
elif inp.get()[0] == "0":
25+
inp.delete(0,"end")
26+
inp.insert("end","error")
27+
28+
else:
29+
res = inp.get()
30+
res = eval(res)
31+
inp.insert("end"," = ")
32+
inp.insert("end",res)
33+
except SyntaxError:
34+
inp.insert("end","invalid input")
35+
# <============ end code ================>
36+
37+
38+
clear = Button(root,text="C",width=2,command=lambda:inp.delete(0,"end"),bg="red",fg="white",relief=RIDGE)
39+
clear.grid(row=0,sticky="w",padx=125)
40+
41+
42+
nine = Button(text="9",width=2,command=lambda:inp.insert("end","9"),borderwidth=3,relief=RIDGE)
43+
nine.grid(row=1,sticky="w",padx=15)
44+
45+
eight = Button(text="8",width=2,command=lambda:inp.insert("end","8"),borderwidth=3,relief=RIDGE)
46+
eight.grid(row=1,sticky="w",padx=45)
47+
48+
seven = Button(root,text="7",width=2,command=lambda:inp.insert("end","7"),borderwidth=3,relief=RIDGE)
49+
seven.grid(row=1,sticky="w",padx=75)
50+
51+
plus = Button(root,text="+",width=2,command=lambda:inp.insert("end","+"),borderwidth=3,relief=RIDGE)
52+
plus.grid(row=1,sticky="e",padx=125)
53+
54+
55+
six = Button(text="6",width=2,command=lambda:inp.insert("end","6"),borderwidth=3,relief=RIDGE)
56+
six.grid(row=2,sticky="w",padx=15,pady=5)
57+
58+
five = Button(text="5",width=2,command=lambda:inp.insert("end","5"),borderwidth=3,relief=RIDGE)
59+
five.grid(row=2,sticky="w",padx=45,pady=5)
60+
61+
four = Button(root,text="4",width=2,command=lambda:inp.insert("end","4"),borderwidth=3,relief=RIDGE)
62+
four.grid(row=2,sticky="w",padx=75,pady=5)
63+
64+
minus = Button(root,text="-",width=2,command=lambda:inp.insert("end","-"),borderwidth=3,relief=RIDGE)
65+
minus.grid(row=2,sticky="e",padx=125,pady=5)
66+
67+
68+
69+
three = Button(text="3",width=2,command=lambda:inp.insert("end","3"),borderwidth=3,relief=RIDGE)
70+
three.grid(row=3,sticky="w",padx=15,pady=5)
71+
72+
two = Button(text="2",width=2,command=lambda:inp.insert("end","2"),borderwidth=3,relief=RIDGE)
73+
two.grid(row=3,sticky="w",padx=45,pady=5)
74+
75+
one = Button(root,text="1",width=2,command=lambda:inp.insert("end","1"),borderwidth=3,relief=RIDGE)
76+
one.grid(row=3,sticky="w",padx=75,pady=5)
77+
78+
multiply = Button(root,text="*",width=2,command=lambda:inp.insert("end","*"),borderwidth=3,relief=RIDGE)
79+
multiply.grid(row=3,sticky="e",padx=125,pady=5)
80+
81+
82+
zero = Button(text="0",width=2,command=lambda:inp.insert("end","0"),borderwidth=3,relief=RIDGE)
83+
zero.grid(row=4,sticky="w",padx=15,pady=5)
84+
85+
double_zero = Button(text="00",width=2,command=lambda:inp.insert("end","00"),borderwidth=3,relief=RIDGE)
86+
double_zero.grid(row=4,sticky="w",padx=45,pady=5)
87+
88+
dot = Button(root,text=".",width=2,command=lambda:inp.insert("end","."),borderwidth=3,relief=RIDGE)
89+
dot.grid(row=4,sticky="w",padx=75,pady=5)
90+
91+
divide = Button(root,text="/",width=2,command=lambda:inp.insert("end","/"),borderwidth=3,relief=RIDGE)
92+
divide.grid(row=4,sticky="e",padx=125,pady=5)
93+
94+
result = Button(root,text="=",width=10,command=result,bg="red",fg="white",borderwidth=3,relief=RIDGE)
95+
result.grid(row=5,sticky="w",padx=15,pady=5)
96+
97+
modulus = Button(root,text="%",width=2,command=lambda:inp.insert("end","%"),borderwidth=3,relief=RIDGE)
98+
modulus.grid(row=5,sticky="e",padx=125,pady=5)
99+
100+
root.mainloop()

Chees-Board/chees.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import matplotlib.pyplot as plt
2+
import numpy as np
3+
from matplotlib.colors import LogNorm
4+
5+
dx, dy = 0.015, 0.05
6+
x = np.arange(-4.0, 4.0, dx)
7+
y = np.arange(-4.0, 4.0, dy)
8+
X, Y = np.meshgrid(x, y)
9+
extent = np.min(x), np.max(x), np.min(y), np.max(y)
10+
z1 = np.add.outer(range(8), range(8)) % 2
11+
plt.imshow(z1, cmap="binary_r", interpolation="nearest", extent=extent, alpha=1)
12+
13+
def chess(x, y):
14+
return (1 - x / 2 + x ** 5 + y ** 6) * np.exp(-(x ** 2 + y ** 2))
15+
z2 = chess(X, Y)
16+
plt.imshow(z2, alpha=0.7, interpolation="bilinear", extent=extent)
17+
plt.title("Chess Board with Python")
18+
plt.show()

Currency/currency-converter.py

+200
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
import tkinter as tk
2+
from tkinter import *
3+
from tkinter import ttk
4+
from datetime import datetime
5+
import requests
6+
from PIL import ImageTk, Image
7+
from tkinter import messagebox
8+
root = tk.Tk()
9+
root.geometry("600x270")
10+
root.title("Currency Converter")
11+
root.iconbitmap('icon.ico')
12+
root.maxsize(600,270)
13+
root.minsize(600,270)
14+
15+
image = Image.open('currency.png')
16+
zoom = 0.5
17+
18+
#multiple image size by zoom
19+
pixels_x, pixels_y = tuple([int(zoom * x) for x in image.size])
20+
21+
img = ImageTk.PhotoImage(image.resize((pixels_x, pixels_y)))
22+
panel = Label(root, image = img)
23+
panel.place(x=190,y=35)
24+
25+
def show_data():
26+
amount = E1.get()
27+
from_currency = c1.get()
28+
to_currency = c2.get()
29+
url = 'http://api.currencylayer.com/live?access_key=4273d2c37f738367f08780b934ce7dda&format=1'
30+
31+
if amount == '':
32+
messagebox.showerror("Currency Converter", "Please Fill the Amount")
33+
elif to_currency == '':
34+
messagebox.showerror("Currency Converter", "Please Choose the Currency")
35+
36+
else:
37+
data = requests.get(url).json()
38+
currency = from_currency.strip()+to_currency.strip()
39+
amount = int(amount)
40+
cc = data['quotes'][currency]
41+
cur_conv = cc*amount
42+
E2.insert(0,cur_conv)
43+
44+
text.insert('end',f'{amount} United State Dollar Equals {cur_conv} {to_currency} \n\n Last Time Update --- \t {datetime.now()}')
45+
46+
def clear():
47+
E1.delete(0,'end')
48+
E2.delete(0,'end')
49+
text.delete(1.0,'end')
50+
51+
52+
l1 = Label(root,text="Real Time USD Currency Converter Using Python", font=('verdana','10','bold'))
53+
l1.place(x=150,y=15)
54+
55+
amt = Label(root,text="Amount",font=('roboto',10,'bold'))
56+
amt.place(x=20,y=15)
57+
E1 = Entry(root,width=20,borderwidth=1,font=('roboto',10,'bold'))
58+
E1.place(x=20,y=40)
59+
60+
c1 = tk.StringVar()
61+
c2 = tk.StringVar()
62+
currencychoose1 = ttk.Combobox(root, width = 20, textvariable = c1, state='readonly',font=('verdana',10,'bold'))
63+
64+
# Adding combobox drop down list
65+
currencychoose1['values'] = (
66+
' USD',
67+
)
68+
69+
currencychoose1.place(x=300,y=40)
70+
currencychoose1.current(0)
71+
72+
73+
74+
E2 = Entry(root,width=20,borderwidth=1,font=('roboto',10,'bold'))
75+
E2.place(x=20,y=80)
76+
77+
78+
currencychoose2 = ttk.Combobox(root, width = 20, textvariable = c2, state='readonly',font=('verdana','10','bold'))
79+
80+
# Adding combobox drop down list
81+
currencychoose2['values'] =('ALL',
82+
' AFN',
83+
' ARS',
84+
' AWG',
85+
' AUD',
86+
' AZN',
87+
' BSD',
88+
' BBD',
89+
' BYN',
90+
' BZD ',
91+
' BMD',
92+
' BOB',
93+
'BAM',
94+
' BWP',
95+
' BGN',
96+
' BND',
97+
' KHR',
98+
' CAD',
99+
' KYD',
100+
' CLP',
101+
' CNY',
102+
' COP ',
103+
' CRC',
104+
' HRK',
105+
'CUP',
106+
'CZK',
107+
' DKK',
108+
' DOP',
109+
' XCD',
110+
' EGP',
111+
' SVC',
112+
' EUR',
113+
' FKP',
114+
' FJD',
115+
' GHS ',
116+
' GIP',
117+
' GTQ',
118+
'GGP',
119+
' GYD',
120+
' HNL ',
121+
' HKD',
122+
' HUF',
123+
' ISK',
124+
' INR',
125+
' IDR',
126+
' IRR',
127+
' IMP ',
128+
' ILS',
129+
' JMD',
130+
'JPY',
131+
'KZT',
132+
' KPW',
133+
' KRW',
134+
' KGS',
135+
' LAK',
136+
' LBP',
137+
' LRD',
138+
' MKD',
139+
' MYR',
140+
' MUR ',
141+
' MXN',
142+
' MNT',
143+
'MZN',
144+
' NAD',
145+
' NPR',
146+
' ANG',
147+
' NZD ',
148+
' NIO ',
149+
' NGN',
150+
' NOK',
151+
' OMR ',
152+
' PKR ',
153+
' PAB',
154+
' PYG',
155+
'PEN',
156+
'PHP',
157+
' PLN',
158+
' QAR',
159+
' RON',
160+
' RUB',
161+
' SHP',
162+
' SAR',
163+
' RSD',
164+
' SCR ',
165+
' SGD ',
166+
' SBD',
167+
' SOS',
168+
'ZAR',
169+
' LKR',
170+
' SEK ',
171+
' CHF',
172+
' SRD',
173+
' SYP',
174+
' TWD',
175+
' THB',
176+
' TTD',
177+
' TRY ',
178+
' TVD',
179+
' UAH',
180+
'GBP ',
181+
' UYU',
182+
' UZS ',
183+
' VEF ',
184+
' VND',
185+
' YER',
186+
'ZWD',)
187+
188+
currencychoose2.place(x=300,y=80)
189+
currencychoose2.current()
190+
191+
text = Text(root,height=7,width=52,font=('verdana','10','bold'))
192+
text.place(x=100,y=120)
193+
194+
B = Button(root,text="Search",command=show_data,font=('verdana','10','bold'),borderwidth=2,bg="red",fg="white")
195+
B.place(x=20,y=120)
196+
197+
clear = Button(root,text="Clear",command=clear,font=('verdana','10','bold'),borderwidth=2,bg="blue",fg="white")
198+
clear.place(x=20,y=170)
199+
200+
root.mainloop()

Currency/currency.png

8.54 KB
Loading

Currency/icon.ico

18.5 KB
Binary file not shown.

Dictionary/dict.png

2.63 KB
Loading

0 commit comments

Comments
 (0)