当前位置:网站首页>Standard input dialog for pyqt5 qinputdialog
Standard input dialog for pyqt5 qinputdialog
2022-06-13 05:13:00 【strive_ one】
QInputDialog
- QInputDialog Provides a simple and convenient dialog box , You can get a single value from the user . The input value can be a string in the list , Number or item .
QInputDialog Five methods included :
- getDouble(QWidget, str, str, value: float = 0, min: float = -2147483647, max: float = 2147483647, decimals: int = 1, flags: Union[Qt.WindowFlags,Qt.WindowType]=Qt.WindowFlags())->Tuple[float,bool]
- getInt(QWidget, str, str, value: int = 0, min: int = -2147483647, max: int = 2147483647, step: int = 1, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags()) -> Tuple[int, bool]
- getItem(QWidget, str, str, Iterable[str], current:int=0,editable:bool=True,flags:Union[Qt.WindowFlags,Qt.WindowType]=Qt.WindowFlags(),inputMethodHints:Union[Qt.InputMethodHints,Qt.InputMethodHint] = Qt.ImhNone) -> Tuple[str, bool]
- getMultiLineText(QWidget, str, str, text: str = ‘’, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags(), inputMethodHints: Union[Qt.InputMethodHints, Qt.InputMethodHint] = Qt.ImhNone)-> Tuple[str, bool]
- getText(QWidget, str, str, echo: QLineEdit.EchoMode = QLineEdit.Normal,text: str = ‘’, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags(),inputMethodHints: Union[Qt.InputMethodHints, Qt.InputMethodHint] = Qt.ImhNone) -> Tuple[str, bool]
It can be found from the above , Will return a tuple , There are two values in the tuple , The first value entered for you , The second is a bool value .
边栏推荐
- Shell instance
- Robot pose description and coordinate transformation
- Small project - household income and expenditure software (2)
- COAP protocol libcoap API
- External sort
- Ruoyi cloud startup tutorial (hand-held graphics)
- 基于 Docker Compose 搭建 Nacos 2(使用 MySQL 进行持久化)
- Binary search and binary answer
- Case - count the number of occurrences of each string in the string
- Std:: Map initialization
猜你喜欢

Bomb disposal cat

Brick story

Time display of the 12th Blue Bridge Cup

Small project - household income and expenditure software (1)

Bm1z002fj-evk-001 startup evaluation

RTSP streaming using easydarwin+ffmpeg

Case - recursive factorial (recursive)

External sort

Section 4 - arrays

Simple sr: Best Buddy Gans for highly detailed image super resolution Paper Analysis
随机推荐
Section 8 - Practical commissioning techniques
Clause 26: avoid overloading universal reference types
QT interface rendering style
Luogu p1088 Martians
Simple-SR:Best-Buddy GANs for Highly Detailed Image Super-Resolution论文浅析
Metartc4.0 integrated ffmpeg compilation
Shell variable learning notes
Std:: Map initialization
Search DFS and BFS
Metaltc4.0 stable release
Luogu p1036 number selection
Introduction to QT XML
Case - recursive factorial (recursive)
Article 49: understanding the behavior of new handler
Luogu p1012 guess
Article 29: assuming that the mobile operation does not exist, is expensive, and is not used
Simple SR: best buddy Gans for highly detailed image super resolution
Explain the opencv function cv:: add() in detail, and attach sample code and running results of various cases
Mysql8.0.13 installation tutorial (with pictures)
C language learning log 10.11