当前位置:网站首页>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 .
边栏推荐
- KVM hot migration for KVM virtual management
- Chapter 14 introduction: memory operation API
- External sort
- Case - traversing the directory (file class & recursive call)
- Logical point
- Recursion and recursion
- C language learning log 12.25
- RT thread console device initialization
- OpenCV中的saturate操作(饱和操作)究竟是怎么回事
- The games that you've tasted
猜你喜欢
随机推荐
Customer information management system - C language
Implementing the driver registration initcall mechanism on stm32
Dup2 use
Logical point
Metartc4.0 integrated ffmpeg compilation
Pycharm错误解决:Process finished with exit code -1073741819 (0xC0000005)
QT interface rendering style
Chapter 2 process management
Advanced C - Section 3 - character functions and string functions
C language learning log 10.4
Opencv image storage and reading
动态规划-最长公共子串
std::condition_ variable::wait_ for
[multithreading] thread pool core class -threadpoolexecutor
Detailed explanation of R language sparse matrix
Binary search and binary answer
About anonymous inner classes
C language learning log 11.7
Simple greedy strategy
Understanding inode