python对话框,并选择yes/no,python弹出对话框,python 自带的
python对话框,并选择yes/no,python弹出对话框,python 自带的
python 自带的 tkinter 库 是这样实现的
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from Tkinter import *
from tkMessageBox import *
def answer():
showerror("Answer", "Sorry, no answer available")
def callback():
askyesno(‘Verify‘, ‘Really quit?‘)
Button(text=‘YE‘, command=callback).pack(fill=X)
Button(text=‘NO‘, command=answer).pack(fill=X)
mainloop()
python对话框,并选择yes/no
相关内容
- Python format语法,python中format怎么用,a = {"name
- python 身份证验证,,# -*- codi
- python实现维吉尼亚解密,维吉尼亚密码怎么算,# -*-cod
- python 多线程,,1、进程的线程共享进
- Python 学习之for与break的用法,, Pytho
- Python中文分词 jieba,,三种分词模式与一个参
- python对象反射和函数反射,python自定义函数实例,pytho
- 关于python中argsort()函数的使用,,在实现《机器学习实战
- 使用 python 将 "\r\n" 转换为 "\n&
- python format函数的使用,,转载自:http:/
评论关闭