forked from ImBibinJohn/FinsYsTkinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bankrecon1.py
126 lines (105 loc) · 5.7 KB
/
bankrecon1.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
from ctypes import HRESULT
from json import load
from re import M
from tkinter import *
from tkinter import ttk
import tkinter as tk
root = tk.Tk()
import random
import os
import datetime
from tkinter import messagebox
from PIL import Image,ImageTk
from tkinter.ttk import Combobox
from tkcalendar import Calendar, DateEntry
width=root.winfo_screenwidth()
height=root.winfo_screenheight()
root.geometry("%dx%d" %(width,height))
root.configure(bg="#2f516f")
root.title("Finsys")
bg_color = "#badc57"
F = LabelFrame(root, font=('times new roman', 15, 'bold'), bd=10, fg="Black", bg="#243e55")
F.place(x=5, y=0, width=1345, height=700)
sa_lbl = Label(F, text="", font=('times new roman', 16, 'bold'),width=40, bg="#243e55", fg="#fff")
sa_lbl.grid(row=1, column=1, padx=10, pady=5, sticky='W')
san_lbl = Label(F, text="Reconcile Inventory Asset", font=('times new roman', 16, 'bold'), bg="#243e55", fg="#fff")
san_lbl.grid(row=1, column=2, padx=10, pady=5, sticky='W')
san_lbl = Label(F, text="Statement ending date : 2022-04-07", font=('times new roman', 11, 'bold'),width=26, bg="#243e55", fg="#fff")
san_lbl.grid(row=2, column=2, padx=10, pady=0, sticky='W')
# Label Widget
a = Label(F, bg="#243e55", fg="#fff",font=('times new roman', 10, 'bold'), relief=RAISED)
a.place(relx=0.1, rely=0.2, relheight=0.1, relwidth=0.4)
san1_lbl = Label(a, text="₹ 677777", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san1_lbl.grid(row=1, column=0, padx=10, pady=0, sticky='W')
san2_lbl = Label(a, text="STATEMENT ENDING BALANCE", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san2_lbl.grid(row=2, column=0, padx=10, pady=0, sticky='W')
san3_lbl = Label(a, text="-", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san3_lbl.grid(row=1, column=1, padx=10, pady=0, sticky='W')
san4_lbl = Label(a, text="₹ 2328343", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san4_lbl.grid(row=1, column=2, padx=10, pady=0, sticky='W')
san5_lbl = Label(a, text="CLEARED BALANCE", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san5_lbl.grid(row=2, column=2, padx=10, pady=0, sticky='W')
a1 = Label(F, bg="#243e55", fg="#fff",font=('times new roman', 10, 'bold'), relief=RAISED)
a1.place(relx=0.1, rely=0.4, relheight=0.1, relwidth=0.4)
san6_lbl = Label(a1, text="₹ 2333333", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san6_lbl.grid(row=1, column=0, padx=10, pady=0, sticky='W')
san7_lbl = Label(a1, text="BEGINNING BALANCE", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san7_lbl.grid(row=2, column=0, padx=10, pady=0, sticky='W')
san8_lbl = Label(a1, text="-", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san8_lbl.grid(row=1, column=1, padx=10, pady=0, sticky='W')
san9_lbl = Label(a1, text="₹ 5000", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san9_lbl.grid(row=1, column=2, padx=10, pady=0, sticky='W')
san10_lbl = Label(a1, text="PAYMENTS", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san10_lbl.grid(row=2, column=2, padx=10, pady=0, sticky='W')
san11_lbl = Label(a1, text="+", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san11_lbl.grid(row=1, column=3, padx=10, pady=0, sticky='W')
san12_lbl = Label(a1, text="₹ 10", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san12_lbl.grid(row=1, column=4, padx=10, pady=0, sticky='W')
san13_lbl = Label(a1, text="DEPOSITS", font=('times new roman', 10, 'bold'), bg="#243e55", fg="#fff")
san13_lbl.grid(row=2, column=4, padx=10, pady=0, sticky='W')
# Separator object
separator = ttk.Separator(F, orient='vertical')
separator.place(relx=0.70, rely=0.2, relwidth=0.2, relheight=0.3)
# Label Widget
san14_lbl = Label(separator, font=('times new roman', 10, 'bold'),fg="#fff")
san14_lbl.grid(row=1, column=4, padx=10, pady=0, sticky='W')
san15_lbl = Label(separator, font=('times new roman', 10, 'bold'), fg="#fff")
san15_lbl.grid(row=2, column=4, padx=10, pady=0, sticky='W')
san16_lbl = Label(separator, text="₹ -1650566", font=('times new roman', 14, 'bold'), fg="#243e55")
san16_lbl.grid(row=3, column=8, padx=10, pady=0, sticky='W')
san17_lbl = Label(separator, text="DIFFERENCES", font=('times new roman', 14, 'bold'), fg="#243e55")
san17_lbl.grid(row=4, column=8, padx=10, pady=0, sticky='W')
F = LabelFrame(root, font=('times new roman', 15, 'bold'), bd=10, fg="Black", bg="#243e55")
F.place(x=5, y=400, width=1345, height=400)
b = Button(F,text = "Payments",bg="#243e55",fg="#fff",font=('times new roman', 12, 'bold'))
b.place(x=500,y=10,width=200,height=40)
b = Button(F,text = "Deposits",bg="#243e55",fg="#fff",font=('times new roman', 12, 'bold'))
b.place(x=700,y=10,width=200,height=40)
b = Button(F,text = "All",bg="#243e55",fg="#fff",font=('times new roman', 12, 'bold'))
b.place(x=900,y=10,width=100,height=40)
tree = ttk.Treeview(F,height=10)
tree['show'] = 'headings'
sb = ttk.Scrollbar(F, orient="vertical", command=tree.yview)
sb.grid(row=1,column=1,sticky="NS",pady=5)
tree.configure(yscrollcommand=sb.set)
tree["columns"]=("1","2","3","4","5","6","7","8")
tree.column("1", width=150)
tree.column("2", width=165)
tree.column("3", width=165)
tree.column("4", width=165)
tree.column("5", width=165)
tree.column("6", width=165)
tree.column("7", width=165)
tree.column("8", width=165)
tree.heading("1", text="DATE")
tree.heading("2", text="TYPE")
tree.heading("3", text="REF NO.")
tree.heading("4", text="ACCOUNT")
tree.heading("5", text="PAYEE")
tree.heading("6", text="MEMO")
tree.heading("7", text="DEPOSIT(INR)")
tree.heading("8", text="PAYMENT(INR)")
tree.grid(row=2,column=0,padx=5,pady=5)
data=['21-04-2022','Journel','4','4554 1236 8585 1221','100000','service charge','5000000','100000']
item1 = tree.insert("", "end", values=(data))
root.mainloop()