· 6 years ago · Apr 28, 2019, 08:42 PM
1from tkinter import *
2import sys,sqlite3,pickle
3
4
5
6root = Tk()
7root.title("Программа покупки билетов")
8root.geometry("1000x700")
9
10
11def append3(event):
12 root3 = Tk()
13 root3.title("Программа покупки билетов")
14 root3.geometry("1000x700")
15 lbl40 = Label(root3, text="ИÑториÑ:")
16 lbl40.grid(column = 1, row = 0)
17 lbl40.place(relx=0.1, rely=0.1)
18 lbl40.configure(font="Arial, 10",bg="#FFDE00", fg="black")
19 conn = sqlite3.connect('bilety.db')
20 cursor = conn.cursor()
21 log=textbox2.get()
22 cursor.execute('''SELECT * FROM bilety WHERE логин=?''',(log,))
23 results = cursor.fetchall()
24 for results_unit in results:
25 lbl1 = Label(root3, text="")
26 lbl1.pack()
27 lbl1['text']=results_unit
28 conn.commit()
29 conn.close()
30
31
32
33def rdm(event):
34 def rdm1(event):
35 if(textbox68.get()>'50' or textbox68.get()<'1'):
36 root64 = Tk()
37 root64.title("Программа покупки билетов")
38 root64.geometry("300x50")
39 lbl381 = Label(root64, text="Ðеправильно выбрано меÑто!")
40 lbl381.pack()
41 lbl381.configure(font="Arial, 10", fg="black")
42 root64.mainloop()
43
44 else:
45 if( textbox1.get()=="" or textbox22.get()=="" or textbox33.get()=="" or textbox4.get()=="" or textbox5.get()=="" or textbox6.get()=="" or listbox4.get(listbox4.curselection())=="" or listbox1.get(listbox1.curselection())=="" or listbox2.get(listbox2.curselection())=="" or listbox3.get(listbox3.curselection())==""):
46 root46 = Tk()
47 root46.title("Программа покупки билетов")
48 root46.geometry("300x50")
49 lbl38 = Label(root46, text="Ð’Ñ‹ не заполнили одно или неÑколько полей")
50 lbl38.pack()
51 lbl38.configure(font="Arial, 10", fg="black")
52 root45.mainloop()
53 else:
54 conn = sqlite3.connect('bilety.db')
55 cursor = conn.cursor()
56 cursor.execute(""" CREATE TABLE IF NOT EXISTS Bilety(логин text,Ñ„Ð°Ð¼Ð¸Ð»Ð¸Ñ text,Ð¸Ð¼Ñ text,отчеÑтво text,ДатаРож text,ÐÐ¾Ð¼ÐµÑ€Ð¿Ð°Ñ text,СериÑÐ¿Ð°Ñ text,Льготы text,Откуда text,Куда text,Когда text,МеÑто text) """)
57 ap = '''insert into bilety values(?,?,?,?,?,?,?,?,?,?,?,?)'''
58 cur=conn.cursor()
59 cur.execute(ap,(textbox2.get(), textbox1.get(), textbox22.get(), textbox33.get(), textbox4.get(), textbox5.get(),textbox6.get(),listbox4.get(listbox4.curselection()), listbox1.get(listbox1.curselection()), listbox2.get(listbox2.curselection()),listbox3.get(listbox3.curselection()),textbox68.get()))
60 conn.commit()
61 window2 = Tk()
62 window2.title("Программа покупки билетов")
63 window2.geometry("1000x700")
64 otkuda=(listbox1.get(listbox1.curselection()))
65 kuda=(listbox2.get(listbox2.curselection()))
66 kogda=(listbox3.get(listbox3.curselection()))
67 if otkuda=="МоÑква" and kuda=="Санкт-Петербург":
68 cena = 8396
69 elif otkuda=="МоÑква" and kuda=="ВолоколамÑк":
70 cena = 322
71 elif otkuda=="МоÑква" and kuda=="Барнаул":
72 cena = 10357
73 elif otkuda=="МоÑква" and kuda=="Владикавказ":
74 cena = 8950
75 elif otkuda=="Саратов" and kuda=="Санкт-Петербург":
76 cena = 8396
77 elif otkuda=="Саратов" and kuda=="ВолоколамÑк":
78 cena = 6521
79 elif otkuda=="Саратов" and kuda=="Барнаул":
80 cena = 12536
81 elif otkuda=="Саратов" and kuda=="Владикавказ":
82 cena = 9550
83 elif otkuda=="Сочи" and kuda=="Санкт-Петербург":
84 cena = 20365
85 elif otkuda=="Сочи" and kuda=="ВолоколамÑк":
86 cena = 15236
87 elif otkuda=="Сочи" and kuda=="Барнаул":
88 cena = 14562
89 elif otkuda=="Сочи" and kuda=="Владикавказ":
90 cena = 17895
91 elif otkuda=="Клин" and kuda=="Санкт-Петербург":
92 cena = 10236
93 elif otkuda=="Клин" and kuda=="ВолоколамÑк":
94 cena = 1500
95 elif otkuda=="Клин" and kuda=="Барнаул":
96 cena = 15782
97 elif otkuda=="Клин" and kuda=="Владикавказ":
98 cena = 23698
99 if listbox4.get(listbox4.curselection())=="ДетÑкий":
100 cena*=0.3
101 elif listbox4.get(listbox4.curselection())=="Социальный":
102 cena*=0.5
103 else:
104 cena=cena
105
106
107
108
109
110
111 def pechat(event):
112 window38 = Tk()
113 window38.title("Программа покупки билетов")
114 window38.geometry("1000x700")
115 lbl189=Label(window38,text="Печать билета:")
116 lbl189.grid(column = 0, row = 0)
117 lbl189.place(relx=0.4, rely=0.05)
118 lbl189.configure(font = "Arial,16",bg="#FFCCFF",fg = "blue")
119 lbl122=Label(window38,text="ФамилиÑ:")
120 lbl122.grid(column = 0, row = 0)
121 lbl122.place(relx=0.1, rely=0.1)
122 lbl123=Label(window38,text=textbox1.get())
123 lbl123.grid(column = 1, row = 0)
124 lbl123.place(relx=0.25, rely=0.1)
125 lbl131=Label(window38,text="ИмÑ:")
126 lbl131.grid(column = 0, row = 0)
127 lbl131.place(relx=0.1, rely=0.15)
128 lbl132=Label(window38,text=textbox22.get())
129 lbl132.grid(column = 1, row = 0)
130 lbl132.place(relx=0.25, rely=0.15)
131 lbl141=Label(window38,text="ОтчеÑтво:")
132 lbl141.grid(column = 0, row = 0)
133 lbl141.place(relx=0.1, rely=0.2)
134 lbl142=Label(window38,text=textbox33.get())
135 lbl142.grid(column = 1, row = 0)
136 lbl142.place(relx=0.25, rely=0.2)
137 lbl151=Label(window38,text="Дата рождениÑ:")
138 lbl151.grid(column = 0, row = 0)
139 lbl151.place(relx=0.1, rely=0.25)
140 lbl152=Label(window38,text=textbox4.get())
141 lbl152.grid(column = 1, row = 0)
142 lbl152.place(relx=0.25, rely=0.25)
143 lbl136=Label(window38,text="Ð¡ÐµÑ€Ð¸Ñ Ð¿Ð°Ñпорта:")
144 lbl136.grid(column = 0, row = 0)
145 lbl136.place(relx=0.1, rely=0.3)
146 lbl137=Label(window38,text=textbox6.get())
147 lbl137.grid(column = 1, row = 0)
148 lbl137.place(relx=0.25, rely=0.3)
149 lbl171=Label(window38,text="Ðомер паÑпорта:")
150 lbl171.grid(column = 0, row = 0)
151 lbl171.place(relx=0.1, rely=0.35)
152 lbl172=Label(window38,text=textbox5.get())
153 lbl172.grid(column = 1, row = 0)
154 lbl172.place(relx=0.25, rely=0.35)
155
156 lbl173=Label(window38,text="Пункт отправлениÑ:")
157 lbl173.grid(column = 0, row = 0)
158 lbl173.place(relx=0.1, rely=0.4)
159 lbl174=Label(window38,text=listbox1.get(listbox1.curselection()))
160 lbl174.grid(column = 1, row = 0)
161 lbl174.place(relx=0.25, rely=0.4)
162
163 lbl175=Label(window38,text="Пункт назначениÑ:")
164 lbl175.grid(column = 0, row = 0)
165 lbl175.place(relx=0.1, rely=0.45)
166 lbl176=Label(window38,text=listbox2.get(listbox2.curselection()))
167 lbl176.grid(column = 1, row = 0)
168 lbl176.place(relx=0.25, rely=0.45)
169
170 lbl177=Label(window38,text="Дата:")
171 lbl177.grid(column = 0, row = 0)
172 lbl177.place(relx=0.1, rely=0.5)
173 lbl178=Label(window38,text=listbox3.get(listbox3.curselection()))
174 lbl178.grid(column = 1, row = 0)
175 lbl178.place(relx=0.25, rely=0.5)
176
177 lbl179=Label(window38,text="Льготы:")
178 lbl179.grid(column = 0, row = 0)
179 lbl179.place(relx=0.1, rely=0.55)
180 lbl180=Label(window38,text=listbox4.get(listbox4.curselection()))
181 lbl180.grid(column = 1, row = 0)
182 lbl180.place(relx=0.25, rely=0.55)
183
184 lbl181=Label(window38,text="CтоимоÑть:")
185 lbl181.grid(column = 0, row = 0)
186 lbl181.place(relx=0.1, rely=0.6)
187 lbl182=Label(window38,text=cena)
188 lbl182.grid(column = 1, row = 0)
189 lbl182.place(relx=0.25, rely=0.6)
190
191
192 def zaversh(event):
193 window39 = Tk()
194 window39.title("Программа покупки билетов")
195 window39.geometry("1000x700")
196 lbl181=Label(window39,text="СПÐСИБО ЗРПОКУПКУ!")
197 lbl181.grid(column = 0, row = 0)
198 lbl181.place(relx=0.3, rely=0.3)
199 lbl181.configure(font="Arial, 30", fg="green")
200
201
202
203
204
205
206
207 butp39 = Button(window38, text="Завершить")
208 butp39.place(relx=0.4, rely=0.8)
209 butp39.bind("<Button-1>", zaversh)
210 window38.mainloop()
211
212
213
214 butp38 = Button(window2, text="Печать билета")
215 butp38.place(relx=0.3, rely=0.3)
216 butp38.bind("<Button-1>", pechat)
217 butp38.configure(font="Arial, 30",bg="#C4C4C4",fg="green")
218 window2.mainloop()
219
220
221 def append2():
222 otkuda = (listbox1.get(listbox1.curselection()))
223 kuda = (listbox2.get(listbox2.curselection()))
224 kogda = (listbox3.get(listbox3.curselection()))
225 lbl8 = Label(window, text="Вы выбрали:")
226 lbl8.grid(column=0, row=0)
227 lbl8.place(relx=0.1, rely=0.75)
228 lbl6 = Label(window, text=otkuda)
229 lbl6.grid(column=0, row=0)
230 lbl6.place(relx=0.2, rely=0.75)
231 lbl9 = Label(window, text="->")
232 lbl9.grid(column=0, row=0)
233 lbl9.place(relx=0.25, rely=0.75)
234 lbl7 = Label(window, text=kuda)
235 lbl7.grid(column=0, row=0)
236 lbl7.place(relx=0.28, rely=0.75)
237 lbl10 = Label(window, text="Дата:")
238 lbl10.grid(column=0, row=0)
239 lbl10.place(relx=0.4, rely=0.75)
240 lbl8 = Label(window, text=kogda)
241 lbl8.grid(column=0, row=0)
242 lbl8.place(relx=0.45, rely=0.75)
243
244 window = Tk()
245 window.title("Программа покупки билетов")
246 window.geometry("1000x700")
247 lbl25 = Label(window, text="Введите личные данные:")
248 lbl25.grid(column=0, row=0)
249 lbl25.place(relx=0.3, rely=0.01)
250 lbl25.configure(font="Arial, 25", fg="blue")
251 lbl2 = Label(window, text="ФамилиÑ:")
252 lbl2.grid(column=0, row=0)
253 lbl2.place(relx=0.03, rely=0.1)
254 lbl2.configure(font="Arial, 10", fg="black")
255 textbox1 = Entry(window, width=30)
256 textbox1.focus_set()
257 textbox1.place(relx=0.15, rely=0.1)
258 lbl3 = Label(window, text="ИмÑ:")
259 lbl3.grid(column=0, row=0)
260 lbl3.place(relx=0.03, rely=0.15)
261 lbl3.configure(font="Arial, 10", fg="black")
262 textbox22 = Entry(window, width=30)
263 textbox22.place(relx=0.15, rely=0.15)
264 lbl4 = Label(window, text="ОтчеÑтво:")
265 lbl4.grid(column=0, row=0)
266 lbl4.place(relx=0.03, rely=0.2)
267 lbl4.configure(font="Arial, 10", fg="black")
268 textbox33 = Entry(window, width=30)
269 textbox33.place(relx=0.15, rely=0.2)
270 lbl4 = Label(window, text="Год рождениÑ:")
271 lbl4.grid(column=0, row=0)
272 lbl4.place(relx=0.03, rely=0.25)
273 lbl4.configure(font="Arial, 10", fg="black")
274 textbox4 = Entry(window, width=30)
275 textbox4.place(relx=0.15, rely=0.25)
276 lbl4 = Label(window, text="Ðомер паÑпорта:")
277 lbl4.grid(column=0, row=0)
278 lbl4.place(relx=0.03, rely=0.3)
279 lbl4.configure(font="Arial, 10", fg="black")
280 textbox5 = Entry(window, width=30)
281 textbox5.place(relx=0.15, rely=0.3)
282 lbl48 = Label(window, text="Ð¡ÐµÑ€Ð¸Ñ Ð¿Ð°Ñпорта:")
283 lbl48.grid(column=0, row=0)
284 lbl48.place(relx=0.03, rely=0.35)
285 lbl48.configure(font="Arial, 10", fg="black")
286 textbox6 = Entry(window, width=30)
287 textbox6.place(relx=0.15, rely=0.35)
288 lbl18=Label(window,text="Льготы:")
289 lbl18.grid(column = 0, row = 0)
290 lbl18.place(relx=0.03, rely=0.4)
291 lbl18.configure(font = "Arial,16",fg = "black")
292 listbox4=Listbox(window,height=3,width=15,exportselection=0)
293 listbox4.grid(column = 0, row = 0)
294 listbox4.place(relx=0.15, rely=0.4)
295 list4=[u"Обычный",u"ДетÑкий",u"Социальный"]
296 for i in list4:
297 listbox4.insert(END,i)
298 lbl49 = Label(window, text="МеÑто:")
299 lbl49.grid(column=0, row=0)
300 lbl49.place(relx=0.03, rely=0.5)
301 lbl49.configure(font="Arial, 10", fg="black")
302 textbox68 = Entry(window, width=30)
303 textbox68.place(relx=0.15, rely=0.5)
304 butp1 = Button(window, text="Продолжить")
305 butp1.configure(font="Arial,16", bg="#00BD58", fg="white")
306 butp1.place(relx=0.4, rely=0.8)
307 butp1.bind("<Button-1>", rdm1)
308 lbl3 = Label(window, text="Откуда:")
309 lbl3.grid(column=0, row=0)
310 lbl3.place(relx=0.2, rely=0.55)
311 lbl3.configure(font="Arial,16", bg="#00BD58", fg="white")
312 listbox1 = Listbox(window, height=5, width=15, exportselection=0)
313 listbox1.grid(column=0, row=0)
314 listbox1.place(relx=0.2, rely=0.6)
315 list1 = [u"МоÑква", u"Саратов", u"Сочи", u"Клин"]
316 for i in list1:
317 listbox1.insert(END, i)
318 lbl4 = Label(window, text="Куда:")
319 lbl4.grid(column=0, row=0)
320 lbl4.place(relx=0.4, rely=0.55)
321 lbl4.configure(font="Arial,16", bg="#00BD58", fg="white")
322 listbox2 = Listbox(window, height=5, width=15, exportselection=0)
323 listbox2.grid(column=0, row=0)
324 listbox2.place(relx=0.4, rely=0.6)
325 list2 = [u"Санкт-Петербург ", u"ВолоколамÑк", u"Барнаул", u"Владикавказ"]
326 for i in list2:
327 listbox2.insert(END, i)
328 lbl5 = Label(window, text="Когда:")
329 lbl5.grid(column=0, row=0)
330 lbl5.place(relx=0.6, rely=0.55)
331 lbl5.configure(font="Arial,16", bg="#00BD58", fg="white")
332 listbox3 = Listbox(window, height=5, width=15, exportselection=0)
333 listbox3.grid(column=0, row=0)
334 listbox3.place(relx=0.6, rely=0.6)
335 list3 = [u"15.05.19", u"25.05.19", u"05.06.19"]
336 for i in list3:
337 listbox3.insert(END, i)
338 butappend1 = Button(window, text="Подтвердить", command=append2)
339 butappend1.grid(column=1, row=3)
340 butappend1.place(relx=0.8, rely=0.6)
341
342
343def admin():
344 name3 = 'vladislav'
345 name4 = '24092001'
346 if(textbox2.get()=="" or textbox3.get()==""):
347 root45 = Tk()
348 root45.title("Программа покупки билетов")
349 root45.geometry("200x50")
350 lbl38 = Label(root45, text="Вы не ввели логин или пароль!")
351 lbl38.pack()
352 lbl38.configure(font="Arial, 10", fg="black")
353 root45.mainloop()
354 else:
355 if textbox2.get() == name3 and textbox3.get() == name4:
356 root35 = Tk()
357 root35.title("Программа покупки билетов")
358 root35.geometry("1000x700")
359 def ap1():
360 root3 = Tk()
361 root3.title("Программа покупки билетов")
362 root3.geometry("1000x700")
363 conn = sqlite3.connect('bilety.db')
364 cursor = conn.cursor()
365 name = textbox2.get()
366 lbl51 = Label(root3, text="ИÑториÑ")
367 lbl51.grid(column=0, row=0)
368 lbl51.place(relx=0.1, rely=0.1)
369 lbl51.configure(font="Arial,16", bg="#FFDE00", fg="Black")
370 cursor.execute('''SELECT * FROM bilety ''')
371 results = cursor.fetchall()
372 for results_unit in results:
373 lbl1 = Label(root3, text="")
374 lbl1.pack()
375 lbl1['text'] = results_unit
376 def ap2():
377 root36 = Tk()
378 root36.title("Программа покупки билетов")
379 root36.geometry("1000x700")
380 textbox86 = Entry(root36, width=30)
381 textbox86.place(relx=0.4, rely=0.8)
382
383 def ap3():
384 log=textbox86.get()
385 if(log==""):
386 root46 = Tk()
387 root46.title("Программа покупки билетов")
388 root46.geometry("200x50")
389 lbl83 = Label(root46, text="Поле пуÑтое!")
390 lbl83.pack()
391 lbl83.configure(font="Arial, 10", fg="black")
392 root46.mainloop()
393
394 else:
395 conn = sqlite3.connect('bilety.db')
396 cursor = conn.cursor()
397 cursor.execute('''SELECT * FROM bilety WHERE логин=?''',(log,))
398 rows=cursor.fetchall()
399 if(rows==[]):
400 root47 = Tk()
401 root47.title("Программа покупки билетов")
402 root47.geometry("200x50")
403 lbl84 = Label(root47, text="Совпадений нет!")
404 lbl84.pack()
405 lbl84.configure(font="Arial, 10", fg="black")
406 root47.mainloop()
407 else:
408 for row in rows:
409 lbl205=Label(root36,text="")
410 lbl205.pack()
411 lbl205['text']=row
412 conn.commit()
413 butappend = Button(root36, text="Подтвердить", command=ap3)
414 butappend.grid(column=1, row=1)
415 butappend.place(relx=0.4, rely=0.85)
416 butappend.configure(font="arial, 20",bg="#FFDE00", fg="black")
417 butappend = Button(root35, text="ИÑÑ‚Ð¾Ñ€Ð¸Ñ Ð¿Ð¾ÐºÑƒÐ¿Ð¾Ðº вÑех билетов", command=ap1)
418 butappend.grid(column=1, row=1)
419 butappend.place(relx=0.01, rely=0.5)
420 butappend.configure(font="arial, 20",bg="#FFDE00", fg="black")
421 butappend = Button(root35, text="ИÑÑ‚Ð¾Ñ€Ð¸Ñ Ð¿Ð¾ÐºÑƒÐ¿Ð¾Ðº билета по логину", command=ap2)
422 butappend.grid(column=1, row=1)
423 butappend.place(relx=0.5, rely=0.5)
424 butappend.configure(font="arial, 20",bg="#FFDE00", fg="black")
425
426
427 else:
428 root4 = Tk()
429 root4.title("Программа покупки билетов")
430 root4.geometry("250x50")
431 lbl2 = Label(root4, text="Ðеверный пароль админиÑтратора!")
432 lbl2.pack()
433 lbl2.configure(font="Arial, 10", fg="black")
434 root4.mainloop()
435
436def baza():
437 if(textbox2.get()=="" or textbox3.get()==""):
438 root45 = Tk()
439 root45.title("Программа покупки билетов")
440 root45.geometry("200x50")
441 lbl38 = Label(root45, text="Вы не ввели логин или пароль!")
442 lbl38.pack()
443 lbl38.configure(font="Arial, 10", fg="black")
444 root45.mainloop()
445 else:
446 conn = sqlite3.connect('bilety.db')
447 cursor = conn.cursor()
448 admin =[]
449 name1='vladislav'
450 admin.append(name1)
451 ap = '''insert into Artist2 values(?,?)'''
452 mp = '''delete from Artist2 wheare name= ?'''
453 name1 = textbox2.get()
454 name2 = textbox3.get()
455 cursor.execute('''SELECT * FROM Artist3 WHERE log = ?;''',(name1,))
456 results = cursor.fetchall()
457 if results == []:
458 root3 = Tk()
459 root3.title("Программа покупки билетов")
460 root3.geometry("200x100")
461 lbl1 = Label(root3, text="Ðеверный логин или пароль!")
462 lbl1.pack()
463 lbl1.configure(font="Arial, 10", fg="black")
464 root3.mainloop()
465 if results == ('vladislav', '24092001') :
466 root3 = Tk()
467 root3.title("Программа покупки билетов")
468 root3.geometry("200x100")
469 lbl1 = Label(root3, text="Admin")
470 lbl1.pack()
471 if results != [] and results != admin:
472 root2 = Tk()
473 root2.title("Программа покупки билетов")
474 root2.geometry("1000x700")
475 lbl1 = Label(root2, text="Ваш аккаунт")
476 lbl1.pack()
477 lbl1.configure(font="Arial, 20", fg="black")
478 butp1 = Button(root2, text="Заказать билет")
479 butp1.place(relx=0.2, rely=0.4)
480 butp1.configure(font="arial, 25", fg="green")
481 butp1.bind("<Button-1>", rdm)
482 butp1 = Button(root2, text="Ваша иÑÑ‚Ð¾Ñ€Ð¸Ñ Ð¿Ð¾ÐµÐ·Ð´Ð¾Ðº")
483 butp1.place(relx=0.5, rely=0.4)
484 butp1.configure(font="arial, 25", fg="green")
485 butp1.bind("<Button-1>", append3)
486 root2.mainloop()
487 conn.commit()
488 conn.close()
489
490def reg():
491 if(textbox2.get()=="" or textbox3.get()==""):
492 root45 = Tk()
493 root45.title("Программа покупки билетов")
494 root45.geometry("200x50")
495 lbl38 = Label(root45, text="Вы не ввели логин или пароль!")
496 lbl38.pack()
497 lbl38.configure(font="Arial, 10", fg="black")
498 root45.mainloop()
499 else:
500 conn = sqlite3.connect('bilety.db')
501 cursor = conn.cursor()
502 cursor.execute('CREATE TABLE IF NOT EXISTS Artist3(log TEXT,'
503 'par TEXT)')
504 name_all = []
505 name1 = [textbox2.get(),textbox3.get()]
506 name_all.append(name1)
507 for name_unit in name_all:
508 cursor.execute('INSERT INTO Artist3 VALUES(?,?)', name_unit)
509 conn.commit()
510 conn.close()
511
512
513
514
515
516butappend = Button(root, text="Войти в аккаунт", command=baza)
517butappend.grid(column=1, row=1)
518butappend.place(relx=0.2, rely=0.5)
519butappend.configure(font="arial, 14",bg="#FFDE00", fg="black")
520
521butappend = Button(root, text="РегиÑтрациÑ", command=reg)
522butappend.grid(column=5, row=5)
523butappend.place(relx=0.4, rely=0.5)
524butappend.configure(font="Arial, 14",bg="#001D50", fg="white")
525butappend = Button(root, text="Войти в аккаунт админиÑтратора", command=admin)
526butappend.grid(column=5, row=5)
527butappend.place(relx=0.6, rely=0.5)
528butappend.configure(font="Arial, 14",bg="#B40000", fg="white")
529lbl36 = Label(root, text="Логин:")
530lbl36.grid(column=0, row=0)
531lbl36.place(relx=0.25, rely=0.34)
532lbl36.configure(font="Arial, 14", fg="black")
533textbox2 = Entry(root, width=50)
534textbox2.focus_set()
535textbox2.place(relx=0.35, rely=0.35)
536lbl37 = Label(root, text="Пароль:")
537lbl37.grid(column=0, row=0)
538lbl37.place(relx=0.25, rely=0.39)
539lbl37.configure(font="Arial, 14", fg="Black")
540textbox3 = Entry(root, width=50)
541textbox3.place(relx=0.35, rely=0.4)
542lbl1 = Label(root, text="Добро пожаловать в программу покупки билетов.")
543lbl1.grid(column=0, row=0)
544lbl1.place(relx=0.15, rely=0.1)
545lbl1.configure(font="Arial, 25", fg="brown")
546lbl35 = Label(root, text="Мы очень рады, что вы решили иÑпользовать наш ÑервиÑ.")
547lbl35.grid(column=0, row=0)
548lbl35.place(relx=0.08, rely=0.2)
549lbl35.configure(font="Arial, 25", fg="brown")
550
551root.mainloop()