Skip to content

Instantly share code, notes, and snippets.

@Dhravya
Created September 13, 2021 07:37
Show Gist options
  • Save Dhravya/1758174aa40ba032044d636b301d4429 to your computer and use it in GitHub Desktop.
Save Dhravya/1758174aa40ba032044d636b301d4429 to your computer and use it in GitHub Desktop.
Numerology app for mom ❤
```
added:
Minor GUI Changes
Numeroscope finder
missing numbers finder
To be added :
Number of occurences counter
Test to find out results
way to display the numeroscope in a better way
Beautification of GUI
make it a website maybe lol
algorithm to check the number of complete straight lines
make the code better and smaller (more readable and organised)
```
import tkinter as tk
root= tk.Tk()
root.title('Numerology Bot')
canvas1 = tk.Canvas(root, width = 400, height = 600, relief = 'flat')
canvas1.pack()
label1 = tk.Label(root, text='NUMEROLOGY REPORT')
label1.config(font=('times', 15))
canvas1.create_window(200, 20, window=label1)
label11 = tk.Label(root, text='Enter your name')
label11.config(font=('helvetica', 10))
canvas1.create_window(200, 45, window=label11)
entry4 = tk.Entry (root)
canvas1.create_window(200, 70 , window=entry4)
label2 = tk.Label(root, text='Type Your birth DATE')
label2.config(font=('helvetica', 10))
canvas1.create_window(200, 100, window=label2)
entry1 = tk.Entry (root)
canvas1.create_window(200, 130, window=entry1)
label3 = tk.Label(root, text='Type Your birth MONTH')
label3.config(font=('helvetica', 10))
canvas1.create_window(200, 160, window=label3)
entry2 = tk.Entry (root)
canvas1.create_window(200, 190, window=entry2)
label4 = tk.Label(root, text='Type Your birth YEAR')
label4.config(font=('helvetica', 10))
canvas1.create_window(200, 220, window=label4)
entry3 = tk.Entry (root)
canvas1.create_window(200, 250, window=entry3)
label8 = tk.Label(root, text= 'Male (M) of female (F) ?')
label8.config(font=('helvetica', 10))
canvas1.create_window(200, 290, window=label8)
entry5 = tk.Entry (root)
canvas1.create_window(200, 310 , window=entry5)
def number_finder():
d = entry1.get()
m = entry2.get()
y = entry3.get()
n = entry4.get()
g = entry5.get()
number_of_occurences4 = 0
number_of_occurences9 = 0
number_of_occurences2 = 0
number_of_occurences3 = 0
number_of_occurences5 = 0
number_of_occurences7 = 0
number_of_occurences8 = 0
number_of_occurences1 = 0
number_of_occurences6 = 0
new_conductor_number = 0
m_sum = 0
y_sum = 0
driver_number= 0
for digit in str(d):
driver_number += int(digit)
for digit in str(m):
m_sum += int(digit)
for digit in str(y):
y_sum += int(digit)
unadded_conductor_number = driver_number + m_sum + y_sum
for digit in str(unadded_conductor_number):
new_conductor_number += int(digit)
label7 = tk.Label(root, text='Numerology Report of ' + n, font =('times',10))
canvas1.create_window(200,400, window= label7)
label6= tk.Label(root, text= 'Your Conductor number is' + str(unadded_conductor_number) +' ==>> ' + str(new_conductor_number) ,font=('helvetica', 10))
canvas1.create_window(200, 450, window=label6)
label5= tk.Label(root, text= 'Your Driver number is '+ str(driver_number) ,font=('helvetica', 10))
canvas1.create_window(200, 430, window=label5)
male = False
if g == 'M':
male = True
else :
male = False
if male == True:
k_number = y_sum - 11
else:
k_number = y_sum + 4
if k_number < 0:
k_number= -1 * k_number
label9 = tk.Label(root,text ='Your Kua Number is ' + str(k_number) , font = ('helvetica', 10))
canvas1.create_window(200,470,window=label9)
d = entry1.get()
m = entry2.get()
y = entry3.get()
n = entry4.get()
g = entry5.get()
loshugrid = [4, 9, 2, 3, 5, 7, 8, 1, 6]
customer_grid = ['','' , '', '', '', '','', '', '']
for digit in str(d):
# if len (d) != 1:
if int(digit) == 4:
customer_grid[0] = int(digit)
elif int(digit) == 9:
customer_grid[1] = int(digit)
elif int(digit) == 2:
customer_grid[2] = int(digit)
elif int(digit) == 3:
customer_grid[3] = int(digit)
elif int(digit) == 5:
customer_grid[4] = int(digit)
elif int(digit) == 7:
customer_grid[5] = int(digit)
elif int(digit) == 8:
customer_grid[6] = int(digit)
elif int(digit) == 1:
customer_grid[7] = int(digit)
elif int(digit) == 6:
customer_grid[8] = int(digit)
for digit in str(m):
if int(digit) == 4:
customer_grid[0] = int(digit)
elif int(digit) == 9:
customer_grid[1] = int(digit)
elif int(digit) == 2:
customer_grid[2] = int(digit)
elif int(digit) == 3:
customer_grid[3] = int(digit)
elif int(digit) == 5:
customer_grid[4] = int(digit)
elif int(digit) == 7:
customer_grid[5] = int(digit)
elif int(digit) == 8:
customer_grid[6] = int(digit)
elif int(digit) == 1:
customer_grid[7] = int(digit)
elif int(digit) == 6:
customer_grid[8] = int(digit)
for digit in str(y):
if int(digit) == 4:
customer_grid[0] = int(digit)
elif int(digit) == 9:
customer_grid[1] = int(digit)
elif int(digit) == 2:
customer_grid[2] = int(digit)
elif int(digit) == 3:
customer_grid[3] = int(digit)
elif int(digit) == 5:
customer_grid[4] = int(digit)
elif int(digit) == 7:
customer_grid[5] = int(digit)
elif int(digit) == 8:
customer_grid[6] = int(digit)
elif int(digit) == 1:
customer_grid[7] = int(digit)
elif int(digit) == 6:
customer_grid[8] = int(digit)
for digit in str(driver_number):
if int(digit) == 4:
customer_grid[0] = int(digit)
elif int(digit) == 9:
customer_grid[1] = int(digit)
elif int(digit) == 2:
customer_grid[2] = int(digit)
elif int(digit) == 3:
customer_grid[3] = int(digit)
elif int(digit) == 5:
customer_grid[4] = int(digit)
elif int(digit) == 7:
customer_grid[5] = int(digit)
elif int(digit) == 8:
customer_grid[6] = int(digit)
elif int(digit) == 1:
customer_grid[7] = int(digit)
elif int(digit) == 6:
customer_grid[8] = int(digit)
for digit in str(new_conductor_number):
if int(digit) == 4:
customer_grid[0] = int(digit)
elif int(digit) == 9:
customer_grid[1] = int(digit)
elif int(digit) == 2:
customer_grid[2] = int(digit)
elif int(digit) == 3:
customer_grid[3] = int(digit)
elif int(digit) == 5:
customer_grid[4] = int(digit)
elif int(digit) == 7:
customer_grid[5] = int(digit)
elif int(digit) == 8:
customer_grid[6] = int(digit)
elif int(digit) == 1:
customer_grid[7] = int(digit)
elif int(digit) == 6:
customer_grid[8] = int(digit)
for digit in str(k_number) :
if int(digit) == 4 :
customer_grid[0] = int(digit)
elif int(digit) == 9:
customer_grid[1] = int(digit)
elif int(digit) == 2:
customer_grid[2] = int(digit)
elif int(digit) == 3:
customer_grid[3] = int(digit)
elif int(digit) == 5:
customer_grid[4] = int(digit)
elif int(digit) == 7:
customer_grid[5] = int(digit)
elif int(digit) == 8:
customer_grid[6] = int(digit)
elif int(digit) == 1:
customer_grid[7] = int(digit)
elif int(digit) == 6:
customer_grid[8] = int(digit)
print (customer_grid)
missing_numbers = [i for i in loshugrid + customer_grid if i not in loshugrid or i not in customer_grid]
print (missing_numbers)
button1 = tk.Button(text='Get', command= number_finder, bg='brown', fg='white', font=('helvetica', 9, 'bold'))
canvas1.create_window(200, 360, window=button1)
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment