上一话题

tkinter — 到 Tcl/Tk 的 Python 接口

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

Log
  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python 标准库
  8. 采用 Tk 的图形用户界面
  9. tkinter.colorchooser — 颜色选取对话框

tkinter.colorchooser — 颜色选取对话框 ¶

源代码: Lib/tkinter/colorchooser.py


The tkinter.colorchooser module provides the Chooser class as an interface to the native color picker dialog. Chooser implements a modal color choosing dialog window. The Chooser class inherits from the Dialog 类。

class tkinter.colorchooser. Chooser ( master = None , ** 选项 ) ¶
tkinter.colorchooser. askcolor ( color = None , ** 选项 ) ¶

Create a color choosing dialog. A call to this method will show the window, wait for the user to make a selection, and return the selected color (or None ) to the caller.

另请参阅

模块 tkinter.commondialog

Tkinter standard dialog module

上一话题

tkinter — 到 Tcl/Tk 的 Python 接口

下一话题

tkinter.font — Tkinter 字体包裹器

本页

  • 报告 Bug
  • 展示源

快速搜索

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

  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python 标准库
  8. 采用 Tk 的图形用户界面
  9. tkinter.colorchooser — 颜色选取对话框
  10. 版权所有  © 2014-2026 乐数软件    

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