-
Notifications
You must be signed in to change notification settings - Fork 8
/
mainpage.py
57 lines (44 loc) · 1.6 KB
/
mainpage.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
from tkinter import *
import tkinter.font as font
from tkinter import ttk
import tkinter as tk
from PIL import ImageTk, Image
import click
from requests import options
def selected(event):
if menu.get() == 'Profit & loss':
import report1
elif menu.get() == 'Balance sheet':
import report2
elif menu.get() == 'Account Receivable ':
import report3
elif menu.get() == 'Account Payable':
import report4
else:
import cashposition
def add_invoice():
x = 4
window = Tk()
window.title('fynsYs')
window.geometry("700x700")
window['bg'] = '#2f516a'
headingfont = font.Font(family='Helvitica', size=24,)
inv_heading = Label(window, borderwidth=1, relief="raised",
width=60, font=headingfont, bg='#243e55', fg='#fff', height=4)
inv_heading.pack(pady=20)
cashposition = Label(window, text="Today: $ 3556345 USD", font=(
'Helvitica', 18), bg='#243e55', fg='white').place(x=220, y=50)
cash = Label(window, text="CASH POSITION", font=('Helvitica', 25),
bg='#243e55', fg='white').place(x=220, y=110)
menu = StringVar()
menu.set("Chart Type")
options = ["Profit & loss", "Balance sheet",
"Account Receivable ", "Account Payable"]
drop = OptionMenu(window, menu, *options, command=selected)
drop.config(bg='#243e55', fg="white", font=('Arial', 18))
drop['menu'].config(bg='#2f516a', fg="white", font=('Arial', 18))
drop.place(x=1000, y=110)
inv_heading = Label(window, borderwidth=1, relief="raised",
width=60, font=headingfont, bg='#243e55', fg='#fff', height=50)
inv_heading.pack(pady=20)
window.mainloop()