赞
踩
用text框 可以了 记录下
from tkinter import *
import tkinter as tk
import easygui
import requests
master = Tk()
from tkinter import ttk
ttk.Label(master,text='标题:').grid(row=0,column=0)
e1 = ttk.Entry(master,
width=44,
font=('StSong', 14),
foreground='green')
e1.grid(row=1)
ttk.Label(master,text='内容:').grid(row=2,column=0)
e2 = Text(master,
width=44,
height=4,
font=('StSong', 14),
foreground='gray')
e2.grid(row=3,column=0)
# 创建Scrollbar组件,设置该组件与text2的纵向滚动关联
scroll = Scrollbar(master, command=e2.yview)
scroll.grid(row = 3,sticky = tk.N + tk.S+tk.E)
#scroll.pack(side=RIGHT, fill=Y)
## 设置text2的纵向滚动影响scroll滚动条
e2.configure(yscrollcommand&#
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。