Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from tkinter.font import Font
- root=Tk()
- root.geometry('1300x400+400+200')
- #font = Font.config("Times") # flat, groove, raised, ridge, solid, or sunken,,, left, right, or center
- can0 = Canvas(root, height=207, width=155, background='SystemButtonFace', borderwidth=10, relief='flat', border=10, bd=0, highlightbackground='black', highlightthickness=1, insertborderwidth=10, insertbackground='green', selectbackground='green', selectborderwidth=20)
- str0 = can0.create_text(80,120, text='ПОКАЗАТЕЛИ', angle=0, anchor='center', fill=None, font='Times, 10', justify='center')
- can0.grid(row=0, column=0, padx=(20,0), pady=(20,0), rowspan=2) # n, ne, e, se, s, sw, w, nw, or center
- can1 = Canvas(root, height=25, width=348, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=(1), highlightcolor='red')
- str1 = can1.create_text(180,12.5, text='Отчетна стойност на нетекущите активи', angle=0, anchor='center', fill=None, font='Times, 10', justify='center')
- can1.grid(row=0, column=1, padx=0, pady=(20, 0), columnspan=7) # n, ne, e, se, s, sw, w, nw, or center
- can2 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str2 = can2.create_text(25,72, text='В началото на\nпериода', angle=90, anchor='e', fill=None, font='Times, 10', justify='left')
- can2.grid(row=1, column=1) # n, ne, e, se, s, sw, w, nw, or center
- can3 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str3 = can3.create_text(25,72, text='На постъпилите\nпрез периода', angle=90, anchor='e', fill=None, font='Times, 10')
- can3.grid(row=1, column=2) # n, ne, e, se, s, sw, w, nw, or center
- can4 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str4 = can4.create_text(4,85, text='На излезлите\nпрез периода', angle=90, anchor='n', fill=None, font='Times, 10')
- can4.grid(row=1, column=3) # n, ne, e, se, s, sw, w, nw, or center
- can5 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str5 = can5.create_text(4,90, text='В края на\nпериода (1+2-3)', angle=90, anchor='n', fill=None, font='Times, 10')
- can5.grid(row=1, column=4) # n, ne, e, se, s, sw, w, nw, or center
- can6 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str6 = can6.create_text(4,100, text='Последваща оценка\nв увеличение', angle=90, anchor='n', fill=None, font='Times, 10')
- can6.grid(row=1, column=5) # n, ne, e, se, s, sw, w, nw, or center
- can7 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str7 = can7.create_text(4,100, text='Последваща оценка\nв намаление', angle=90, anchor='n', fill=None, font='Times, 10')
- can7.grid(row=1, column=6) # n, ne, e, se, s, sw, w, nw, or center
- can8 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='green', highlightthickness=1)
- str8 = can8.create_text(4,110, text='Преоценена стойност\n(4+5-6)', angle=90, anchor='n', fill=None, font='Times, 10')
- can8.grid(row=1, column=7) # n, ne, e, se, s, sw, w, nw, or center
- can9 = Canvas(root, height=25, width=348, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str9 = can9.create_text(200,12.5, text='Амортизация', angle=0, anchor='center', fill=None, font='Timesbd, 10', justify='center')
- can9.grid(row=0, column=8, padx=0, pady=(20, 0), columnspan=7) # n, ne, e, se, s, sw, w, nw, or center
- can10 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str10 = can10.create_text(4,1, text='В началото на\nпериода', angle=90, anchor='ne', fill=None, font='Times, 10')
- can10.grid(row=1, column=8) # n, ne, e, se, s, sw, w, nw, or center
- can11 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str11 = can11.create_text(4,85, text='На постъпилите\nпрез периода', angle=90, anchor='n', fill=None, font='Times, 10')
- can11.grid(row=1, column=9) # n, ne, e, se, s, sw, w, nw, or center
- can12 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str12 = can12.create_text(4,85, text='На излезлите\nпрез периода', angle=90, anchor='n', fill=None, font='Times, 10')
- can12.grid(row=1, column=10) # n, ne, e, se, s, sw, w, nw, or center
- can13 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str13 = can13.create_text(4,90, text='В края на\nпериода (1+2-3)', angle=90, anchor='n', fill=None, font='Times, 10')
- can13.grid(row=1, column=11) # n, ne, e, se, s, sw, w, nw, or center
- can14 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str14 = can14.create_text(4,100, text='Последваща оценка\nв увеличение', angle=90, anchor='n', fill=None, font='Times, 10')
- can14.grid(row=1, column=12) # n, ne, e, se, s, sw, w, nw, or center
- can15 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str15 = can15.create_text(4,100, text='Последваща оценка\nв намаление', angle=90, anchor='n', fill=None, font='Times, 10')
- can15.grid(row=1, column=13) # n, ne, e, se, s, sw, w, nw, or center
- can16 = Canvas(root, height=180, width=48, background='white', borderwidth=0, relief='flat', highlightbackground='blue', highlightthickness=1)
- str16 = can16.create_text(4,90, text='Преоценена амортизация в\n края на периода (11+12-13)', angle=90, anchor='n', fill=None, font='Times, 10', justify='left')
- can16.grid(row=1, column=14) # n, ne, e, se, s, sw, w, nw, or center
- can18 = Canvas(root, height=207, width=53, background='white', borderwidth=0, relief='flat', highlightbackground='black', highlightthickness=1)
- str18 = can18.create_text(2,140, text='Балансова стойност\nв края на периода\n(7-14)', angle=90, anchor='n', fill=None, font='Times, 10', justify='left')
- can18.grid(row=0, column=15, padx=(0,20), pady=(20,0), rowspan=2) # n, ne, e, se, s, sw, w, nw, or center
- # tex1 = Text(root, bg='white', height=3, width=29, font='Times, 10')
- # tex1.insert(END, ' 2. Концесии, патенти, търговски марки, програмни продукти и други подобни права и активи')
- # tex1.grid(row=2, column=0, padx=(20, 0))
- #
- # tex2 = Text(root, bg='white', height=1, width=12, font='Times, 10')
- # tex2.insert(END, '12 999,32')
- # tex2.grid(row=2, column=1, padx=(20, 0))
- lab = Label(root, text=' 2. Концесии, патенти, търговски\nмарки, програмни продукти\nи други подобни права и активи', font="Timesbg, 7", justify='left', bg='lightgrey', width=25, height=3)
- lab.grid(row=2, column=0, padx=(20, 0))
- # flat, groove, raised, ridge, solid, or sunken
- lab2 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab2.grid(row=2, column=1, padx=(0, 0))
- lab3 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab3.grid(row=2, column=2, padx=(0, 0))
- lab4 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab4.grid(row=2, column=3, padx=(0, 0))
- lab5 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab5.grid(row=2, column=4, padx=(0, 0))
- lab6 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab6.grid(row=2, column=5, padx=(0, 0))
- lab7 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab7.grid(row=2, column=6, padx=(0, 0))
- lab8 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab8.grid(row=2, column=7, padx=(0, 0))
- lab9 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab9.grid(row=2, column=8, padx=(0, 0))
- lab10 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab10.grid(row=2, column=9, padx=(0, 0))
- lab11 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab11.grid(row=2, column=10, padx=(0, 0))
- lab12 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab12.grid(row=2, column=11, padx=(0, 0))
- lab13 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab13.grid(row=2, column=12, padx=(0, 0))
- lab14 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab14.grid(row=2, column=13, padx=(0, 0))
- lab15 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=7, height=3)
- lab15.grid(row=2, column=14, padx=(0, 0))
- lab16 = Label(root, text='\n12 005.23\n', font="Timesbg, 7", justify='right', bg='white', width=8, height=3)
- lab16.grid(row=2, column=15, padx=(0,20), pady=(0,0))
- # lab1 = Label(root, text='ПОКАЗАТЕЛИ', wraplength=0)
- # lab1.grid(row=0, column=0)
- #
- # lab2 = Label(root, text='Отчетна стойност на нетекущите активи', wraplength=0)
- # lab2.grid(row=0, column=(7))
- #
- # lab3 = Label(root, text='В началото на периода', wraplength=1)
- # lab3.grid(row=1, column=2)
- #
- # lab4 = Label(root, text='На постъпилите през периода', wraplength=1)
- # lab4.grid(row=1, column=3)
- # canvas=Canvas()
- # canvas.create_window(root, width=100, height=100, )
- # canvas.pack()
- #
- # ver_text = canvas.create_text(100, 100, text='Rotated Text', angle=90)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement