Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move %history and %save action into mainwindow

  • Loading branch information...
commit 9439e88972caf3e9449adf192b4351f7e37827e9 1 parent 5932a85
Matthias Bussonnier Carreau authored fperez committed
14 IPython/frontend/qt/console/history_console_widget.py
View
@@ -31,20 +31,6 @@ def __init__(self, *args, **kw):
self._history_index = 0
self._history_prefix = ''
- self.history_action = QtGui.QAction("History",
- self,
- statusTip="show command history",
- triggered=self.history_magic)
- self.history_action.setDisabled(True)
- self.addAction(self.history_action)
-
- self.save_action = QtGui.QAction("Export History ",
- self,
- statusTip="Export History as Python File",
- triggered=self.save_magic)
- self.save_action.setDisabled(True)
- self.addAction(self.save_action)
-
#---------------------------------------------------------------------------
# 'ConsoleWidget' public interface
#---------------------------------------------------------------------------
15 IPython/frontend/qt/console/qtconsoleapp.py
View
@@ -184,17 +184,22 @@ def initMenuBar(self):
print "trying to add unexisting action (reset), skipping"
try:
- self.magicMenu.addAction(self._frontend.history_action)
- self._frontend.history_action.setEnabled(True)
+ self.history_action = QtGui.QAction("History",
+ self,
+ statusTip="show command history",
+ triggered=self._frontend.history_magic)
+ self.magicMenu.addAction(self.history_action)
except AttributeError:
print "trying to add unexisting action (history), skipping"
try:
- self.magicMenu.addAction(self._frontend.save_action)
- self._frontend.save_action.setEnabled(True)
+ self.save_action = QtGui.QAction("Export History ",
+ self,
+ statusTip="Export History as Python File",
+ triggered=self._frontend.save_magic)
+ self.magicMenu.addAction(self.save_action)
except AttributeError:
print "trying to add unexisting action (save), skipping"
- self._frontend.reset_action.setEnabled(True)
try:
self.clear_action = QtGui.QAction("Clear",
Please sign in to comment.
Something went wrong with that request. Please try again.