Python的GUI设计用PyQt5怎样写出LineEdit的取值后传入另一个函数代码?
时间: 2023-03-13 07:42:18 浏览: 70
可以使用PyQt5的QLineEdit类来实现,例如:lineEdit = QLineEdit()
def getLineEditValue(self):
value = lineEdit.text()
passValueToFunction(value)
相关问题
Python的GUI设计用PyQt5怎样写出LineEdit的取值后传入另一个库的函数参数代码?
使用PyQt5的LineEdit获取值并传入另一个库的函数参数的代码如下:my_value = self.lineEdit.text()
other_library_function(my_value)
Python的GUI设计用PyQt5怎样写出LineEdit的取值后传入另一个库的函数的参数里的代码?
使用PyQt5编写LineEdit取值的代码如下:lineEdit = QLineEdit()value = lineEdit.text()传入另一个库的函数的代码如下:other_library.function(value)
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)