Fixed some code snippets used in the PySide docs.

This commit is contained in:
Hugo Parente Lima 2010-10-05 14:55:20 -03:00
commit 1508831725
8 changed files with 28 additions and 28 deletions

View file

@ -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]