我想在QInputDialog.getInt上用默认值"/“创建一个输入对话框,它的工作原理是添加数字作为参数。对我来说用getText不管用。
使用Python3.4和PyQt4
作品:
port,port_check = QtGui.QInputDialog.getInt(self,"FTP-Server Port","FTP-Server Port (meist 21):",21)不起作用
pfad, pfad_check = QtGui.QInputDialog.getText(self, 'FTP-Server Verzeichnis', 'FTP-Server Verzeichnis ( / ):','/')有什么想法吗?
发布于 2016-05-31 21:56:06
与以下各项配合使用:
pfad,pfad_check = QtGui.QInputDialog.getText(self,'FTP-Server Verzeichnis','FTP-Server Verzeichnis (/ ):',text='/')
https://stackoverflow.com/questions/37538975
复制相似问题