-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path14text.py
More file actions
29 lines (24 loc) · 787 Bytes
/
Copy path14text.py
File metadata and controls
29 lines (24 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from Tkinter import *
a = Tk()
text1 = Text(a, height=40, width=80)
photo=PhotoImage(file='./par.png')
text1.insert(END,'\n')
text1.image_create(END,image=photo)
text1.pack(side=LEFT)
text2 = Text(a, height=40, width=100)
scroll = Scrollbar(a, command=text2.yview)
text2.configure(yscrollcommand=scroll.set)
text2.tag_configure('bold_italics', font=('Arial', 12, 'bold', 'italic'))
text2.tag_configure('big', font=('Verdana', 20, 'bold'))
text2.tag_configure('color', foreground='blue', font=('Tempus Sans ITC', 13, 'bold'))
text2.insert(END,'\nmy details\n', 'big')
quote = """
ratul arora
software developer
for more info www.geeklanguages.blogspot.com
Location : Jalandhar
"""
text2.insert(END, quote, 'color')
text2.pack(side=LEFT)
scroll.pack(side=RIGHT, fill=Y)
a.mainloop()