Show More
@@ -31,20 +31,6 b' class HistoryConsoleWidget(ConsoleWidget):' | |||||
31 | self._history_index = 0 |
|
31 | self._history_index = 0 | |
32 | self._history_prefix = '' |
|
32 | self._history_prefix = '' | |
33 |
|
33 | |||
34 | self.history_action = QtGui.QAction("History", |
|
|||
35 | self, |
|
|||
36 | statusTip="show command history", |
|
|||
37 | triggered=self.history_magic) |
|
|||
38 | self.history_action.setDisabled(True) |
|
|||
39 | self.addAction(self.history_action) |
|
|||
40 |
|
||||
41 | self.save_action = QtGui.QAction("Export History ", |
|
|||
42 | self, |
|
|||
43 | statusTip="Export History as Python File", |
|
|||
44 | triggered=self.save_magic) |
|
|||
45 | self.save_action.setDisabled(True) |
|
|||
46 | self.addAction(self.save_action) |
|
|||
47 |
|
||||
48 | #--------------------------------------------------------------------------- |
|
34 | #--------------------------------------------------------------------------- | |
49 | # 'ConsoleWidget' public interface |
|
35 | # 'ConsoleWidget' public interface | |
50 | #--------------------------------------------------------------------------- |
|
36 | #--------------------------------------------------------------------------- |
@@ -184,17 +184,22 b' class MainWindow(QtGui.QMainWindow):' | |||||
184 | print "trying to add unexisting action (reset), skipping" |
|
184 | print "trying to add unexisting action (reset), skipping" | |
185 |
|
185 | |||
186 | try: |
|
186 | try: | |
187 | self.magicMenu.addAction(self._frontend.history_action) |
|
187 | self.history_action = QtGui.QAction("History", | |
188 | self._frontend.history_action.setEnabled(True) |
|
188 | self, | |
|
189 | statusTip="show command history", | |||
|
190 | triggered=self._frontend.history_magic) | |||
|
191 | self.magicMenu.addAction(self.history_action) | |||
189 | except AttributeError: |
|
192 | except AttributeError: | |
190 | print "trying to add unexisting action (history), skipping" |
|
193 | print "trying to add unexisting action (history), skipping" | |
191 |
|
194 | |||
192 | try: |
|
195 | try: | |
193 | self.magicMenu.addAction(self._frontend.save_action) |
|
196 | self.save_action = QtGui.QAction("Export History ", | |
194 | self._frontend.save_action.setEnabled(True) |
|
197 | self, | |
|
198 | statusTip="Export History as Python File", | |||
|
199 | triggered=self._frontend.save_magic) | |||
|
200 | self.magicMenu.addAction(self.save_action) | |||
195 | except AttributeError: |
|
201 | except AttributeError: | |
196 | print "trying to add unexisting action (save), skipping" |
|
202 | print "trying to add unexisting action (save), skipping" | |
197 | self._frontend.reset_action.setEnabled(True) |
|
|||
198 |
|
203 | |||
199 | try: |
|
204 | try: | |
200 | self.clear_action = QtGui.QAction("Clear", |
|
205 | self.clear_action = QtGui.QAction("Clear", |
General Comments 0
You need to be logged in to leave comments.
Login now