Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- import tkinter.ttk as ttk
- title = tk.Tk()
- title.title('Нематериални активи')
- title.geometry('1440x600+200+150') # 1060
- title.resizable(True, True)
- title.attributes('-topmost', 'true')
- col_0 = col_1 = col_2 = col_3 = col_4 = dict
- row_0 = row_1 = row_2 = row_3 = dict
- val_0 = val_1 = val_2 = val_3 = val_4 = tk.Label()
- da = {'row_0': {'col_0': {'val_0': 'ПОКАЗАТЕЛИ'}, 'col_1': {'val_1': 'Отчетна стойност\nна нетекущите активи'}, 'col_2': {'val_2': ''}, 'col_3': {'val_3': ''}, 'col_4': {'val_4': ''}, 'col_5': {'val_5': ''}, 'col_6': {'val_6': ''}, 'col_7': {'val_7': ''}, 'col_8': {'val_8': 'Амортизации'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': 'Балансова\nстойност\nв края'}},
- 'row_1': {'col_0': {'val_0': ''}, 'col_1': {'val_1': 'В началото\nна периода'}, 'col_2': {'val_2': 'Постъпили\nпрез периода'}, 'col_3': {'val_3': 'Излезли\nпрез периода'}, 'col_4': {'val_4': 'В края на\nпериода'}, 'col_5': {'val_5': 'Преоценка в\nувеличение'}, 'col_6': {'val_6': 'Преоценка в\n намаление'}, 'col_7': {'val_7': 'Преоценена\nстойност'}, 'col_8': {'val_8': 'В началото\nна периода'}, 'col_9': {'val_9': 'Начислена\nпрез периода'}, 'col_10': {'val_10': 'Отписана\nпрез периода'}, 'col_11': {'val_11': 'В края на\nпериода'}, 'col_12': {'val_12': 'Преоценка в\nувеличение'}, 'col_13': {'val_13': 'Преоценка в\nнамаление'}, 'col_14': {'val_14': 'Преоценена\nамортизация'}, 'col_15': {'val_15': ''}},
- 'row_2': {'col_0': {'val_0': 'а'}, 'col_1': {'val_1': '1'}, 'col_2': {'val_2': '2'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4 = 1+2-3'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7 = 4+5-6'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11 = 8+9-10'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14 = 11+12-13'}, 'col_15': {'val_15': '15 = 7-14'}},
- 'row_3': {'col_0': {'val_0': 'I. Нематериални активи'}, 'col_1': {'val_1': ''}, 'col_2': {'val_2': ''}, 'col_3': {'val_3': ''}, 'col_4': {'val_4': ''}, 'col_5': {'val_5': ''}, 'col_6': {'val_6': ''}, 'col_7': {'val_7': ''}, 'col_8': {'val_8': ''}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': ''}},
- 'row_4': {'col_0': {'val_0': ' 1. Продукти от развойна дейност'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_5': {'col_0': {'val_0': ' 2. Концесии, патенти, търговски\nмарки, програмни продукти и\nдруги подобни права и активи'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_6': {'col_0': {'val_0': ' 3. Търговска репутация'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_7': {'col_0': {'val_0': ' 4. Предоставени аванси и нематериални\nактиви в процес на изграждане'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_8': {'col_0': {'val_0': ' - в т.ч.: предоставени аванси'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_9': {'col_0': {'val_0': 'Общо за група I.'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_10': {'col_0': {'val_0': 'II. Материални дълготрайни активи'}, 'col_1': {'val_1': ''}, 'col_2': {'val_2': ''}, 'col_3': {'val_3': ''}, 'col_4': {'val_4': ''}, 'col_5': {'val_5': ''}, 'col_6': {'val_6': ''}, 'col_7': {'val_7': ''}, 'col_8': {'val_8': ''}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': ''}},
- 'row_11': {'col_0': {'val_0': ' 1. Земи и сгради, включително права в т.ч.:'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_12': {'col_0': {'val_0': ' - земи'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': ' '}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_13': {'col_0': {'val_0': ' - подобрения върху земите'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_14': {'col_0': {'val_0': ' - сгради'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_15': {'col_0': {'val_0': ' 2. Машини, производствено оборудване\n и апаратура'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_16': {'col_0': {'val_0': ' 3. Съоръжения и други'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_17': {'col_0': {'val_0': ' - в т.ч.: транспортни средства'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_18': {'col_0': {'val_0': ' 4. Предоставени аванси и дълготрайни мате-\nриални активи в процес на изграждане'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_19': {'col_0': {'val_0': ' - в т.ч.: предоставени аванси'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_20': {'col_0': {'val_0': 'Общо за група II.'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_21': {'col_0': {'val_0': 'III. Дългосрочни финансови активи'}, 'col_1': {'val_1': ''}, 'col_2': {'val_2': ''}, 'col_3': {'val_3': ''}, 'col_4': {'val_4': ''}, 'col_5': {'val_5': ''}, 'col_6': {'val_6': ''}, 'col_7': {'val_7': ''}, 'col_8': {'val_8': ''}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': ''}},
- 'row_22': {'col_0': {'val_0': ' 1. Акции и дялове в предприятия от група'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_23': {'col_0': {'val_0': ' 2. Предоставени заеми на предприятия\n от група'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_24': {'col_0': {'val_0': ' 3. Акции и дялове в асоциирани и\n смесени предприятия'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_25': {'col_0': {'val_0': ' 4. Предоставени заеми, свързани с\nасоциирани и смесени предприятия'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_26': {'col_0': {'val_0': ' 5. Дългосрочни инвестиции\n(инвестиционни имоти)'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_27': {'col_0': {'val_0': ' 6. Други заеми'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_28': {'col_0': {'val_0': ' 7. Изкупени собствени акции'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_29': {'col_0': {'val_0': 'Общо за група III.'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- 'row_30': {'col_0': {'val_0': 'IV. Отсрочени данъци'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': 'x'}, 'col_9': {'val_9': ''}, 'col_10': {'val_10': ''}, 'col_11': {'val_11': ''}, 'col_12': {'val_12': ''}, 'col_13': {'val_13': ''}, 'col_14': {'val_14': ''}, 'col_15': {'val_15': '15'}},
- 'row_31': {'col_0': {'val_0': 'Общо нетекущи (дълготрайни) активи'}, 'col_1': {'val_1': f'n'}, 'col_2': {'val_2': f'n'}, 'col_3': {'val_3': '3'}, 'col_4': {'val_4': '4'}, 'col_5': {'val_5': '5'}, 'col_6': {'val_6': '6'}, 'col_7': {'val_7': '7'}, 'col_8': {'val_8': '8'}, 'col_9': {'val_9': '9'}, 'col_10': {'val_10': '10'}, 'col_11': {'val_11': '11'}, 'col_12': {'val_12': '12'}, 'col_13': {'val_13': '13'}, 'col_14': {'val_14': '14'}, 'col_15': {'val_15': '15'}},
- }
- frame = tk.Frame(title)
- frame.pack(fill='both', expand=1, anchor='nw')
- canvas = tk.Canvas(frame)
- canvas.pack(side='left', fill='both', expand=1)
- myscrollbar = ttk.Scrollbar(frame, orient="vertical", command=canvas.yview)
- myscrollbar.pack(side='right', fill='y')
- canvas.configure(yscrollcommand=myscrollbar.set)
- canvas.bind('<Configure>', lambda e: canvas.configure(scrollregion=canvas.bbox('all')))
- second_frame = tk.Frame(canvas, bg='blue')
- canvas.create_window((0, 0), window=second_frame, anchor='center')
- def create_label(text, row_x, col_y, span_row=1, span_col=1, height=3):
- label = tk.Label(second_frame, text=text, font=('Times New Roman', 10, 'bold'), bg='white', height=height,
- anchor='center', fg='black', justify='center')
- label.grid(row=row_x, column=col_y, padx=(1, 1), pady=(1, 1), sticky='nswe', rowspan=span_row, columnspan=span_col)
- def create_table():
- row_n = 0
- span_row = 1
- span_col = 1
- height = 1
- for row in da: # Редове 'row_1'
- col_n = 0
- for column in da[row]: # Колони
- for val in da[row][column]: # val = val_1
- text = da[row][column][val]
- if text == '' or text is None:
- col_n += 1
- continue
- elif text == 'ПОКАЗАТЕЛИ' or text == 'Балансова\nстойност\nв края':
- span_row = 2
- height = 5
- elif text == 'Отчетна стойност\nна нетекущите активи' or text == 'Амортизации':
- span_col = 7
- height = 2
- elif (row == 'row_7' and column == 'col_8' and val == 'val_8') or (row == 'row_8' and
- column == 'col_8' and val == 'val_8') or (row == 'row_12' and column == 'col_8' and
- val == 'val_8') or (row == 'row_18' and column == 'col_8' and val == 'val_8') or\
- (row == 'row_19' and column == 'col_8' and val == 'val_8')\
- or (row == 'row_22' and column == 'col_8' and val == 'val_8')\
- or (row == 'row_23' and column == 'col_8' and val == 'val_8') or\
- (row == 'row_24' and column == 'col_8' and val == 'val_8') or (row == 'row_25' and
- column == 'col_8' and val == 'val_8') or (row == 'row_27' and column == 'col_8' and
- val == 'val_8') or (row == 'row_28' and column == 'col_8' and val == 'val_8') or\
- (row == 'row_30' and column == 'col_8' and val == 'val_8'):
- span_col = 7
- if row == 'row_1':
- height = 3
- if row == 'row_7' or row == 'row_15' or row == 'row_18' or row == 'row_23' or row == 'row_24'\
- or row == 'row_25' or row == 'row_26':
- height = 2
- if row == 'row_3' or row == 'row_10' or row == 'row_21':
- span_col = 16
- create_label(text=text, row_x=row_n, col_y=col_n, span_row=span_row, span_col=span_col, height=height)
- col_n += 1
- span_col = 1
- span_row = 1
- height=1
- row_n += 1
- create_table()
- title.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement