Dec-01-2019, 11:38 AM
(Dec-01-2019, 11:11 AM)Gribouillis Wrote: Move one parenthese
print("{}-{}".format(value3 + parts, parts+1) + ('-{}\n'.format(value1) if parts in [0, value2 - 1] else ''))
Tnx for your answer. It works but i get a gap between the first and second rows.
Quote:7-1-1234
8-2
9-3
10-4
11-5
12-6
13-7-1234
And im geting this when i try to insert it in to text entry in my tkinter app.
Quote:7-1-1234
8-29-310-411-512-613-7-1234
the code i use in tkinter app
self.text_entry.insert(END,"{}-{}".format(value3 + parts, parts+1) + ('-{}\n'.format(value1) if parts in [0, value2 - 1] else ''))