上一话题

tkinter.messagebox — Tkinter 消息提示

下一话题
就业培训     下载中心     Wiki     联络
登录   注册

Log
  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python 标准库
  8. 采用 Tk 的图形用户界面
  9. tkinter.scrolledtext — 卷动文本 Widget

tkinter.scrolledtext — 卷动文本 Widget ¶

源代码: Lib/tkinter/scrolledtext.py


The tkinter.scrolledtext module provides a class of the same name which implements a basic text widget which has a vertical scroll bar configured to do the “right thing.” Using the ScrolledText class is a lot easier than setting up a text widget and scroll bar directly.

The text widget and scrollbar are packed together in a Frame , and the methods of the Grid and Pack geometry managers are acquired from the Frame object. This allows the ScrolledText widget to be used directly to achieve most normal geometry management behavior.

Should more specific control be necessary, the following attributes are available:

class tkinter.scrolledtext. ScrolledText ( master = None , ** kw ) ¶
frame ¶

The frame which surrounds the text and scroll bar widgets.

vbar ¶

The scroll bar widget.

上一话题

tkinter.messagebox — Tkinter 消息提示

下一话题

tkinter.dnd — 拖放支持

本页

  • 报告 Bug
  • 展示源

快速搜索

键入搜索术语或模块、类、函数名称。

  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python 标准库
  8. 采用 Tk 的图形用户界面
  9. tkinter.scrolledtext — 卷动文本 Widget

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1