Fix console errors

This commit is contained in:
Matthias Kuhn 2016-04-14 11:10:29 +02:00
parent d283223c56
commit fe314754c6

View File

@ -407,9 +407,9 @@ class PythonConsoleWidget(QWidget):
} }
self.classMenu = QMenu() self.classMenu = QMenu()
for (title, icon), commands in default_command.iteritems(): for (title, icon), commands in default_command.items():
action = self.classMenu.addAction(icon, title) action = self.classMenu.addAction(icon, title)
action.triggered[()].connect( action.triggered.connect(
lambda commands=commands: self.shell.commandConsole(commands)) lambda commands=commands: self.shell.commandConsole(commands))
cM = self.toolBar.widgetForAction(self.actionClass) cM = self.toolBar.widgetForAction(self.actionClass)