- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
*****************
pusto = '\n'
if x100 == pusto:
win = Toplevel(root,relief=SUNKEN,bd=10,bg="lightblue")
win.title(u"ReqIS")
win.minsize(width=550,height=400)
tex = Text(win,font=('times',10),width=100,height=30,wrap=WORD)
tex.place(x = 10, y = 10)
tex.insert (END,u'Заполните все поля')
elif x103 == pusto:
....
*****************
def save():
s = v.get()
f1 = open("text1.txt", 'w') # сохраняет переменные в файл
f1.write(s.encode("utf-8"))
f1.write('\n')
y = x.get()
f1.write(y.encode("utf-8"))
f1.write('\n')
w = q.get()
f1.write(w.encode("utf-8"))
f1.write('\n')
i = e.get()
f1.write(i.encode("utf-8"))
f1.write('\n')
u = z.get()
f1.write(u.encode("utf-8"))
f1.write('\n')
*****************