Example #1
0
 def create_shortcuts(self):
     inspect = create_shortcut(self._control.inspect_current_object,
                               context='Console', name='Inspect current object',
                               parent=self)
     clear_console = create_shortcut(self.clear_console, context='Console',
                                     name='Clear shell', parent=self)
     return [inspect, clear_console]
Example #2
0
 def create_shortcuts(self):
     inspect = create_shortcut(self._control.inspect_current_object,
                               context='Console',
                               name='Inspect current object',
                               parent=self)
     clear_console = create_shortcut(self.clear_console,
                                     context='Console',
                                     name='Clear shell',
                                     parent=self)
     return [inspect, clear_console]
Example #3
0
    def create_shortcuts(self):
        inspect = create_shortcut(self._control.inspect_current_object,
                                  context='Console', name='Inspect current object',
                                  parent=self)
        clear_console = create_shortcut(self.clear_console, context='Console',
                                        name='Clear shell', parent=self)

        # Fixed shortcuts
        new_shortcut("Ctrl+T", self,
                     lambda: self.emit(SIGNAL("new_ipyclient()")))

        return [inspect, clear_console]
Example #4
0
    def create_shortcuts(self, parent):
        """Create shortcuts for this widget"""
        # Configurable
        findnext = create_shortcut(self.find_next, context="Editor", name="Find next", parent=parent)
        findprev = create_shortcut(self.find_previous, context="Editor", name="Find previous", parent=parent)
        togglefind = create_shortcut(self.show, context="Editor", name="Find text", parent=parent)
        togglereplace = create_shortcut(
            self.toggle_replace_widgets, context="Editor", name="Replace text", parent=parent
        )
        # Fixed
        new_shortcut("Escape", self, self.hide)

        return [findnext, findprev, togglefind, togglereplace]
Example #5
0
    def create_shortcuts(self):
        inspect = create_shortcut(self._control.inspect_current_object,
                                  context='Console',
                                  name='Inspect current object',
                                  parent=self)
        clear_console = create_shortcut(self.clear_console,
                                        context='Console',
                                        name='Clear shell',
                                        parent=self)

        # Fixed shortcuts
        new_shortcut("Ctrl+T", self,
                     lambda: self.emit(SIGNAL("new_ipyclient()")))

        return [inspect, clear_console]
Example #6
0
    def create_shortcuts(self):
        inspect = create_shortcut(self._control.inspect_current_object,
                                  context='Console', name='Inspect current object',
                                  parent=self)
        clear_console = create_shortcut(self.clear_console, context='Console',
                                        name='Clear shell', parent=self)

        # Fixed shortcuts
        new_shortcut("Ctrl+T", self, lambda: self.new_client.emit())
        new_shortcut(SHORTCUT_INLINE, self,
                     lambda: self._control.enter_array_inline())
        new_shortcut(SHORTCUT_TABLE, self,
                     lambda: self._control.enter_array_table())

        return [inspect, clear_console]
Example #7
0
 def create_shortcuts(self, parent):
     """Create shortcuts for this widget"""
     # Configurable
     findnext = create_shortcut(self.find_next, context='Editor',
                                name='Find next', parent=parent)
     findprev = create_shortcut(self.find_previous, context='Editor',
                                name='Find previous', parent=parent)
     togglefind = create_shortcut(self.show, context='Editor',
                                  name='Find text', parent=parent)
     togglereplace = create_shortcut(self.toggle_replace_widgets,
                                     context='Editor', name='Replace text',
                                     parent=parent)
     # Fixed
     escape = QShortcut(QKeySequence("Escape"), self, self.hide)
     escape.setContext(Qt.WidgetWithChildrenShortcut)
     return [findnext, findprev, togglefind, togglereplace]
Example #8
0
    def create_shortcuts(self, parent):
        """Create shortcuts for this widget"""
        # Configurable
        findnext = create_shortcut(self.find_next, context='Editor',
                                   name='Find next', parent=parent)
        findprev = create_shortcut(self.find_previous, context='Editor',
                                   name='Find previous', parent=parent)
        togglefind = create_shortcut(self.show, context='Editor',
                                     name='Find text', parent=parent)
        togglereplace = create_shortcut(self.toggle_replace_widgets,
                                        context='Editor', name='Replace text',
                                        parent=parent)
        # Fixed
        new_shortcut("Escape", self, self.hide)

        return [findnext, findprev, togglefind, togglereplace]
Example #9
0
 def create_shortcuts(self):
     new_shortcut(SHORTCUT_INLINE, self, lambda: self.enter_array_inline())
     new_shortcut(SHORTCUT_TABLE, self, lambda: self.enter_array_table())        
     inspectsc = create_shortcut(self.inspect_current_object,
                                 context='Console',
                                 name='Inspect current object',
                                 parent=self)
     return [inspectsc]
Example #10
0
 def create_shortcuts(self):
     new_shortcut(SHORTCUT_INLINE, self, lambda: self.enter_array_inline())
     new_shortcut(SHORTCUT_TABLE, self, lambda: self.enter_array_table())
     inspectsc = create_shortcut(self.inspect_current_object,
                                 context='Console',
                                 name='Inspect current object',
                                 parent=self)
     return [inspectsc]
Example #11
0
    def create_shortcuts(self):
        inspect = create_shortcut(self._control.inspect_current_object,
                                  context='Console',
                                  name='Inspect current object',
                                  parent=self)
        clear_console = create_shortcut(self.clear_console,
                                        context='Console',
                                        name='Clear shell',
                                        parent=self)

        # Fixed shortcuts
        new_shortcut("Ctrl+T", self, lambda: self.new_client.emit())
        new_shortcut(SHORTCUT_INLINE, self,
                     lambda: self._control.enter_array_inline())
        new_shortcut(SHORTCUT_TABLE, self,
                     lambda: self._control.enter_array_table())

        return [inspect, clear_console]
Example #12
0
 def create_shortcuts(self):
     inspectsc = create_shortcut(self.inspect_current_object,
                                 context='Console',
                                 name='Inspect current object',
                                 parent=self)
     return [inspectsc]
Example #13
0
 def create_shortcuts(self):
     inspectsc = create_shortcut(self.inspect_current_object,
                                 context='Console',
                                 name='Inspect current object',
                                 parent=self)
     return [inspectsc]