当前位置:网站首页>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 .
边栏推荐
- C language learning log 10.6
- Pychart error resolution: process finished with exit code -1073741819 (0xc0000005)
- 【多线程】线程池核心类-ThreadPoolExecutor
- About anonymous inner classes
- KVM hot migration for KVM virtual management
- C language learning log 10.5
- priority inversion problem
- OJ problem solution summary
- 关于匿名内部类
- Jeffery0207 blog navigation
猜你喜欢
RMQ、LCA
The games that you've tasted
Dup2 use
Brick story
Hidden implementation and decoupling, knowing Pimpl mode
Article 29: assuming that the mobile operation does not exist, is expensive, and is not used
Section 7 - structures
Spice story
Course outline of market drawing 1- basic knowledge
metaRTC4.0稳定版发布
随机推荐
Flex布局自适应失效的问题
Case - simulated landlords (primary version)
Gradient descent, learning rate
Chapter 15 mechanism: Address Translation
Advanced C language - Section 1 - data storage
Clause 28: understanding reference folding
Understanding inode
OpenCV中的saturate操作(饱和操作)究竟是怎么回事
Customer information management system - C language
Luogu p3654 fisrt step
Luogu p1088 Martians
Logical point
Section 6 - pointers
Introduction to QT XML
Bomb disposal cat
std::condition_ variable::wait_ for
Stepping on a horse (one stroke)
1.2 differences caused by keywords
Luogu p1036 number selection
Time display of the 12th Blue Bridge Cup