-
Notifications
You must be signed in to change notification settings - Fork 1
/
Report Generator.py
36 lines (23 loc) · 998 Bytes
/
Report Generator.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
from dbw import *
from tkinter import *
"""this module is for the first GUI """
root = Tk()
root.title("Pixel Panda")
root.iconbitmap(default='D:\\Pixel_Panda\\Images\\logo.ico')
lbl = Label(root, text="Welcome to Wizard", font=("Arial Bold", 20), fg="#020042", bg="#e8e8fc")
lbl.grid(column=0, row=0, pady=(56, 20), padx=(92, 90))
root.resizable(0, 0)
root.geometry('600x380')
root.config(bg="#e8e8fc")
def clicked():
s_name = txt.get()
data_fetch_from_key(s_name) # this method is defined in dbw
txt = Entry(root, width=50, bg="#fff")
txt.insert(0, 'Report Code: <DDMMYY><RunNo><ClientCode>')
txt.bind("<FocusIn>", lambda args: txt.delete('0', 'end'))
txt.grid(column=0, row=1)
root.bind("<Return>", lambda event: clicked())
btn = Button(root, text="Generate Report", bg="#aca7ce", fg="black", command=clicked)
###############################################################################################################
btn.grid(column=0, row=3, pady=20)
root.mainloop()