aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtgui/qwidget_test.py
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-21 14:51:26 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-21 14:52:09 -0300
commit9af36fbb64f19842c0cc797c0b586b3a686805e8 (patch)
tree6bbc050ded0f85517ea75f5dc6dc1ed172168248 /tests/qtgui/qwidget_test.py
parentaa12538d63685ef8f75adaa79411b751929b727d (diff)
Added all original pyside unit tests to the shiboken version.
Diffstat (limited to 'tests/qtgui/qwidget_test.py')
-rw-r--r--tests/qtgui/qwidget_test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/qtgui/qwidget_test.py b/tests/qtgui/qwidget_test.py
new file mode 100644
index 000000000..288db372a
--- /dev/null
+++ b/tests/qtgui/qwidget_test.py
@@ -0,0 +1,18 @@
+
+import unittest
+
+from PySide.QtGui import QWidget
+from helper import UsesQApplication
+
+class QWidgetVisible(UsesQApplication):
+
+ def testBasic(self):
+ # Also related to bug #244, on existence of setVisible'''
+ widget = QWidget()
+ self.assert_(not widget.isVisible())
+ widget.setVisible(True)
+ self.assert_(widget.isVisible())
+
+
+if __name__ == '__main__':
+ unittest.main()