赞
踩
前面写过python弹框的ctypes.windll.user32方法:https://blog.csdn.net/Gordennizaicunzai/article/details/78966694
该方法调用windows系统的user32组件,不是纯python方法,且wser32的MessageBoxA使用不当会出现乱码,不是很好用。这里介绍pythonic的弹框——tkinter.messagebox。
NAME
tkinter.messagebox
DESCRIPTION
# tk common message boxes
#
# this module provides an interface to the native message boxes
# available in Tk 4.2 and newer.
#
# written by Fredrik Lundh, May 1997
#
CLASSES
tkinter.commondialog.Dialog(builtins.object)
Message
class Message(tkinter.commondialog.Dialog)
| Message(master=None, **options)
|
| A message box
|
| Method resolution order:
| Message
| tkinter.commondialog.Dialog
| builtins.object
|
| Data and other attributes defined here:
|
| command = 'tk_messageBox'
|
| ----------------------------------------------------------------------
| Methods inherited from tkinter.commondialog.Dialog:
|
| __init__(self, master=None, **options)
| Initialize self. See help(type(self)) for accurate signature.
|
| show(self, **options)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。