-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.txt
183 lines (133 loc) · 5.42 KB
/
project.txt
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
from tkinter import *
from tkinter import filedialog
import subprocess,sysconfig
import os
def hello():
pass
def cust():
import cust
cust.customerform()
#button.pack()
root = Tk()
root.minsize(888,888)
root.maxsize(888,888)
menubar = Menu(root)
custmenu = Menu(menubar,tearoff=0)#to avoid dashed line
menubar.add_cascade(label="Inventory", command=cust)
estmenu = Menu(menubar,tearoff=0)#to avoid dashed line
menubar.add_cascade(label="CustomerDetails", command=hello)
root.config(menu=menubar)
root.mainloop()
_____________________________mdi________________________________________________________________________________________
from tkinter import *
from tkinter.messagebox import showinfo
#from reportlab.pdfbase.acroform import visibilities
def customerform():
root = Tk()
root.title("Project")
root.maxsize(1000,1000)
root.minsize(1000, 1000)
hframe = Frame(root)
hframe.pack(fill=X)
hl1 = Label(hframe, text="Inventory", width=25,font="times 24 bold italic underline",fg="#001dff")
#lbl1.config(font=("Courier", 18))
hl1.pack(side=TOP, padx=5, pady=5)
frame1 = Frame(root)
frame1.pack(fill=X)
lbl1 = Label(frame1, text="Supplier-Id", width=10,font="times 18 bold underline",fg="green")
#lbl1.config(font=("Courier", 18))
lbl1.pack(side=LEFT, padx=20, pady=20)
entry1 = Entry(frame1,font="times 18 bold")
entry1.pack(fill=X, padx=10, expand=True)
frame2 = Frame(root)
frame2.pack(fill=X)
lbl2 = Label(frame2, text="Supplied Series", width=12,font="times 18 bold")
lbl2.pack(side=LEFT, padx=20, pady=20)
entry2 = Entry(frame2)
entry2.pack(fill=X, padx=10,expand=True)
frame3 = Frame(root)
frame3.pack(fill=X)
lbl3 = Label(frame3, text="Quantity", width=12,font="times 18 bold")
lbl3.pack(side=LEFT, padx=20, pady=20)
entry3 = Entry(frame3)
entry3.pack(fill=X, padx=10,expand=True)
frame4 = Frame(root)
frame4.pack(fill=X)
lbl4 = Label(frame4, text="Date", width=12,font="times 18 bold")
lbl4.pack(side=LEFT, padx=20, pady=20)
entry4 = Entry(frame4)
entry4.pack(fill=X, padx=10,expand=True)
frame5 = Frame(root)
frame5.pack(fill=X)
lbl5 = Label(frame5, text="Invoice No.", width=12,font="times 18 bold")
lbl5.pack(side=LEFT, padx=20, pady=20)
entry5 = Entry(frame5)
entry5.pack(fill=X, padx=20,expand=True)
buttonframe=Frame(root)
buttonframe.pack(fill=X,padx=50)
b1 = Button(buttonframe, text="Add", width=6,font="times 18 bold")
b1.pack(side=LEFT, padx=5, pady=5)
b2 = Button(buttonframe, text="Delete", width=6)
b2.pack(side=LEFT, padx=5, pady=5)
# b3=Button(buttonframe,text="Add")
# b3.pack()
def reply():
#showinfo(message=Lb1.selection_get())
entry1.delete(0, END)
entry1.insert(0,Lb1.selection_get())
def show():
Lb1.pack(side=TOP, padx=5, pady=5)
b4.config(state=NORMAL)
print("show")
#b4.config(state=NORMAL)
b3 = Button(buttonframe, text="Update", width=6)
b3.pack(side=LEFT, padx=5, pady=5)
b4 = Button(buttonframe,state=DISABLED, text="Search", width=6,command=reply)
b4.pack(side=LEFT, padx=5, pady=5)
b5 = Button(buttonframe, text="Show", width=6,command=show)
b5.pack(side=LEFT, padx=5, pady=5)
listframe=Frame(root,bg="red")
#listframe.pack(fill=X,padx=160,pady=25)
listframe.pack(side=LEFT,pady=25)
Lb1 = Listbox(listframe)
Lb1.insert(1, "Samsung")
Lb1.insert(2, "Iphone")
Lb1.insert(3, "Pixel")
Lb1.insert(4, "L.G")
Lb1.insert(5, "Motorola")
#Lb1.insert(6, "Ruby")
#Lb1.pack(side=TOP, padx=5, pady=5)
# b4=Button(buttonframe,text="Add")
# b4.pack()
root.mainloop()
cust
___________________________________________________________________________________________________________________
from tkinter import *
master=Tk()
master.maxsize(444,444)
master.minsize(444,444)
master.title("Easy shop")
Label(master,text=" ").grid(row=0)
Label(master,text="Name").grid(row=0,column=1)
e1=Entry(master).grid(row=0,column=2,)
Label(master,text=" ").grid(row=0,column=3)
Label(master,text="Id").grid(row=0,column=4)
e2=Entry(master).grid(row=0,column=5)
Label(master,text="Name").grid(row=1,column=1)
e1=Entry(master).grid(row=1,column=2,)
Label(master,text=" ").grid(row=1,column=3)
Label(master,text="Id").grid(row=1,column=4)
e2=Entry(master).grid(row=1,column=5)
Label(master,text="Name").grid(row=2,column=1)
e1=Entry(master).grid(row=2,column=2,)
Label(master,text=" ").grid(row=2,column=3)
Label(master,text="Id").grid(row=2,column=4)
e2=Entry(master).grid(row=2,column=5)
# e1.grid(row=0,column=1)
# e2.grid(row=1,column=1)
#Button(master,text='Add').grid(row=3,column=1, sticky=E+W)
Button(master,text='Delete').grid(row=3,column=2,sticky=E+W)
Button(master,text='Add').grid(row=3,column=5,columnspan=3, sticky=E+W)
Button(master,text='Delete').grid(row=4,column=2,sticky=E+W)
Button(master,text='Add').grid(row=4,column=5,columnspan=3, sticky=E+W)
mainloop()