-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson17.py
More file actions
28 lines (21 loc) · 709 Bytes
/
lesson17.py
File metadata and controls
28 lines (21 loc) · 709 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
from tkinter import *
from tkinter import ttk
import tkinter
import tkinter.scrolledtext as st
root = Tk()
root.title("Tkinter")
root.geometry("500x500")
ttk.Label(root,
text = "ScrolledText Widget Example",
font = ("Times New Roman", 15),
background = 'green',
foreground = "white").grid(column = 0,
row = 0)
text_area = st.ScrolledText(root,
width = 30,
height = 8,
font = ("Times New Roman",
15))
text_area.grid(column = 0, pady = 10, padx = 10)
text_area.configure(state ='normal')
root.mainloop()