diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-04-26 15:19:33 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:15 -0300 |
commit | 74dc26aa7180f7df26c5b975d7cd6a0443d04d78 (patch) | |
tree | e526e5be247d2bee3f38fc2ea753f30f304fcd20 /tests | |
parent | 862e1a14b2848edd6ce62d00a6547150d95bea5d (diff) |
Fix test on windows.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtGui/qinputcontext_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtGui/qinputcontext_test.py b/tests/QtGui/qinputcontext_test.py index c29d4465d..1dc3e12d2 100644 --- a/tests/QtGui/qinputcontext_test.py +++ b/tests/QtGui/qinputcontext_test.py @@ -11,12 +11,12 @@ class QInputContextTest(UsesQApplication): widget = QPushButton() widget.show() - if not widget.testAttribute(Qt.WA_InputMethodEnabled): - widget.setAttribute(Qt.WA_InputMethodEnabled) - context = self.app.inputContext() self.assertEqual(context.focusWidget(), None) + if not widget.testAttribute(Qt.WA_InputMethodEnabled): + widget.setAttribute(Qt.WA_InputMethodEnabled) + context.setFocusWidget(widget) self.assertEqual(context.focusWidget(), widget) |