码迷,mamicode.com
首页 > 编程语言 > 详细

Python tkinter

时间:2016-07-15 19:47:15      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

 

在python3.4中,原来的tkMessageBox变成tkinter.messagebox,使用方式如下:

import tkinter.messagebox
tkinter.messagebox.askokcancel(‘提示‘,‘登录成功!‘)




tkinter.messagebox中有如下函数:

askokcancel(title=None, message=None, **options)

Ask if operation should proceed; return true if the answer is ok

askquestion(title=None, message=None, **options)

Ask a question

askretrycancel(title=None, message=None, **options)

Ask if operation should be retried; return true if the answer is yes

askyesno(title=None, message=None, **options)

Ask a question; return true if the answer is yes

askyesnocancel(title=None, message=None, **options)

Ask a question; return true if the answer is yes, None if cancelled.

showerror(title=None, message=None, **options)

Show an error message

showinfo(title=None, message=None, **options)

Show an info message

showwarning(title=None, message=None, **options)

Show a warning message

Python tkinter

标签:

原文地址:http://www.cnblogs.com/ficow/p/5674536.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!