-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.py
66 lines (50 loc) · 1.53 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from tkinter import *
import tkinter as tk
from tkinter import ttk
from tkcalendar import Calendar, DateEntry
from ttkthemes import ThemedTk
from tkinter import messagebox
import matplotlib.pyplot as plt
from databasemaker import *
from PIL import Image, ImageTk
import PIL.Image
# Database Maker:
makedatabase()
from Main_Window.theme import ttk_theme
from Main_Window.balance import *
from Main_Window.income import *
from Main_Window.budget import *
from Main_Window.goals import *
from Main_Window.analysis import *
from Main_Window.expense import *
from Menubar.menuFunctions import *
from Menubar.menuOthers import *
root = ThemedTk(theme = ttk_theme, themebg = True)
root.title("SpendMate - Your Money Manager")
root.iconphoto(True, tk.PhotoImage(file='SpendMate1.png'))
root.resizable(False, False)
img = ImageTk.PhotoImage(PIL.Image.open("SpendMate1.png"))
panel = tk.Label(root, image = img)
panel.grid(row = 0,column = 0, columnspan=4)
tlabel = ttk.Label(root, text="Welcome to SpendMate :)")
tlabel.grid(row = 0,column = 1, columnspan = 8,pady = 2)
tlabel.config(font=("Comic Sans MS", 25))
menubar = Menu(root)
# Function menu
callmenuFunc(menubar, root)
# Others menu
callmenuOther(menubar)
root.config(menu=menubar)
# Balance Portion of Main Window
callbalance(root)
# Income Section of Main Window
callincome(root)
# Income Section of Main Window
callExpense(root)
# Budget Section of Main Window
callBudget(root)
# Analysis Section of Main Window
callAnalysis(root)
# Goals Section of Main Window
callGoals(root)
root.mainloop()