PyQt tutorial 5-Dialogs in PyQt5
对话框 Dialog windows or dialogs are an indispensable(不可或缺) part of most modern GUI applications. A dialog is defined as a conversation between two or more persons. In a computer application a dialog is a window which is used to “talk” to the application. A dialog is used to input data, modify data, change the application settings etc. 1. QInputDialog QInputDialog provides a simple convenience dialog to get a single value from the user. The input value can be a string, a number, or an item from a list. #!/usr/bin/python3 # -*- coding: utf-8 -*- """ ZetCode PyQt5 tutorial In this example, we