eaglexmw / seascope

Automatically exported from code.google.com/p/seascope
Other
0 stars 0 forks source link

AttributeError: type object 'QKeySequence' has no attribute 'Quit' #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ python SeaScope.py 
Traceback (most recent call last):
  File "SeaScope.py", line 381, in <module>
    ma = SeaScopeApp()
  File "SeaScope.py", line 335, in __init__
    self.create_mbar()
  File "SeaScope.py", line 123, in create_mbar
    m_file.addAction('&Quit', self.close, QKeySequence.Quit)
AttributeError: type object 'QKeySequence' has no attribute 'Quit'

* Ubuntu 9.10 "karmic"
* python-qscintilla2 version 2.4-3build1
* python-qt4 version 4.6-1

Original issue reported on code.google.com by agustin....@gmail.com on 8 Feb 2011 at 11:50

GoogleCodeExporter commented 9 years ago
Meanwhile I get it working by using 'Ctrl+Q' instead of QKeySequence.Quit, in 
SeaScope.py line 123:

<<< m_file.addAction('&Quit', self.close, QKeySequence.Quit)
>>> m_file.addAction('&Quit', self.close, 'Ctrl+Q')

Original comment by agustin....@gmail.com on 8 Feb 2011 at 11:56

GoogleCodeExporter commented 9 years ago
Some of these QKeySequence.* keys have been added in later versions of py-qt4.
Upgrading to latest pyqt4 should solve this issue.

Until then, please use shortcuts directly as suggested by the above comment.

Original comment by anil.om...@gmail.com on 14 Feb 2011 at 8:52

GoogleCodeExporter commented 9 years ago
Issue 5 has been merged into this issue.

Original comment by anil.om...@gmail.com on 8 Mar 2011 at 2:06