Fixed some code snippets used in the PySide docs.
This commit is contained in:
parent
829ffd3dfd
commit
1508831725
8 changed files with 28 additions and 28 deletions
|
|
@ -63,9 +63,9 @@
|
|||
//! [2]
|
||||
|
||||
//! [3]
|
||||
QString text = QInputDialog::getText(self, self.tr("QInputDialog().getText()"),
|
||||
text = QInputDialog::getText(self, self.tr("QInputDialog().getText()"),
|
||||
self.tr("User name:"), QLineEdit.Normal,
|
||||
QDir().home().dirName(), ok)
|
||||
if ok and not text.isEmpty():
|
||||
if ok and text:
|
||||
textLabel.setText(text)
|
||||
//! [3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue