Updated QtGui modue to works with python 2.x and 3.x
This commit is contained in:
parent
edaefbce48
commit
d9dd319232
15 changed files with 94 additions and 71 deletions
|
|
@ -3,9 +3,9 @@
|
|||
'''Tests conversions of QString to and from QKeySequence.'''
|
||||
|
||||
import unittest
|
||||
import py3kcompat as py3k
|
||||
from helper import UsesQApplication
|
||||
|
||||
from PySide.QtCore import *
|
||||
from PySide.QtGui import QKeySequence, QAction
|
||||
|
||||
class QStringQKeySequenceTest(UsesQApplication):
|
||||
|
|
@ -19,7 +19,7 @@ class QStringQKeySequenceTest(UsesQApplication):
|
|||
|
||||
def testPythonStringAsQKeySequence(self):
|
||||
'''Passes a Python string to an argument expecting a QKeySequence.'''
|
||||
keyseq = u'Ctrl+A'
|
||||
keyseq = py3k.unicode_('Ctrl+A')
|
||||
action = QAction(None)
|
||||
action.setShortcut(keyseq)
|
||||
shortcut = action.shortcut()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue