~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/widgets/findreplace.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel, Ghislain Antony Vaillant, Picca Frédéric-Emmanuel
  • Date: 2015-02-26 13:31:59 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20150226133159-zvom6ax6mah3irhv
Tags: 2.3.3+dfsg-1~exp1
[Ghislain Antony Vaillant]
* New upstream release.

[Picca Frédéric-Emmanuel]
* Upstream moved to github (watch, control and copyright file updated)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# pylint: disable=R0201
13
13
 
14
14
from spyderlib.qt.QtGui import (QHBoxLayout, QGridLayout, QCheckBox, QLabel,
15
 
                                QWidget, QSizePolicy, QShortcut, QKeySequence,
16
 
                                QTextCursor)
 
15
                                QWidget, QSizePolicy, QTextCursor)
17
16
from spyderlib.qt.QtCore import SIGNAL, Qt, QTimer
18
17
 
19
18
import re
20
19
 
21
20
# Local imports
22
21
from spyderlib.baseconfig import _
23
 
from spyderlib.guiconfig import create_shortcut
 
22
from spyderlib.guiconfig import create_shortcut, new_shortcut
24
23
from spyderlib.utils.qthelpers import (get_icon, get_std_icon,
25
24
                                       create_toolbutton)
26
25
from spyderlib.widgets.comboboxes import PatternComboBox
167
166
                                        context='Editor', name='Replace text',
168
167
                                        parent=parent)
169
168
        # Fixed
170
 
        escape = QShortcut(QKeySequence("Escape"), self, self.hide)
171
 
        escape.setContext(Qt.WidgetWithChildrenShortcut)
 
169
        new_shortcut("Escape", self, self.hide)
 
170
 
172
171
        return [findnext, findprev, togglefind, togglereplace]
173
172
        
174
173
    def get_shortcut_data(self):