1.2 【python】tkinter一个有趣的小项目

# tk常见的消息框
from tkinter.commondialog import Dialog


#图标
ERROR = "error"
INFO = "info"
QUESTION = "question"
WARNING = "warning"


ABORTRETRYIGNORE = "abortretryignore"
OK = "ok"
OKCANCEL = "okcancel"
RETRYCANCEL = "retrycancel"
YESNO = "yesno"
YESNOCANCEL = "yesnocancel"


ABORT = "abort"
RETRY = "retry"
IGNORE = "ignore"
OK = "ok"
CANCEL = "cancel"
YES = "yes"
NO = "no"


#消息对话框类
class Message(Dialog):
    "A message box"

    command  = "tk_messageBox"



def _show(title=None, message=None, _icon=None, _type=None, **options):
    if _icon and "icon" not in options:    options["icon"] = _icon
    if

你可能感兴趣的:(python,python)