for i in range(1, n + 1):
angle_step = 2 * math.pi / n
angle = angle_step * i
x1 = 340 + int(radius * math.cos(angle)) // n
y1 = 250 + int(radius * math.sin(angle)) // n
x2 = 340 + int(radius * math.cos(angle + angle_step)) // n
y2 = 250 + int(radius * math.sin(angle + angle_step)) // n
canvas.create_line((x1, y1), (x2, y2), fill="blue")
try:
if doc.get('attachment').get('file') == 'val_1':
name = doc['attachment']['key_4']
print('Success', name)
except:
name = None
print('Bad', name)
try:
if doc['attachment']['file'] == 'val_1':
name = doc['attachment']['key_4']
print('Success', name)
except:
name = None
print('Bad', name)
https://docs-python.ru/standart-library/modul-text...
Еще:
https://www.geeksforgeeks.org/how-to-wrap-text-wit...