tkinter.colorchooser — Color choosing dialog - Python 3.12.0a3 documentation 编辑
Source code: 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.
- class tkinter.colorchooser.Chooser(master=None, **options)
- tkinter.colorchooser.askcolor(color=None, **options)
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.
See also
- Module
tkinter.commondialog
Tkinter standard dialog module
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论