PyQt5最全21 对话框之QInputDialog输入对话框
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
import sys
class QInputDialogDemo(QWidget):
"""
QInputDialog 输入对话框
QInputDialog.getItem 显示输入列表
QInputDialog.getText 显示用于录入普通文本的对话框
QInputDialog.getInt 显示输入整数的对话框
详看例子
"""
def __init__(self):
super(QInputDialogDemo, self).__init__()
self.initUI()
def initUI(self):
self.setWindowTitle('QInputDialog演示'