@@ -168,7 +168,7 @@ def __init__(self, parent=None):
168168 self .newShortcutCS .activated .connect (self .autoCompleteKeyBinding )
169169 self .runScut = QShortcut (QKeySequence (Qt .CTRL + Qt .Key_E ), self )
170170 self .runScut .setContext (Qt .WidgetShortcut )
171- self .runScut .activated .connect (self .runSelectedCode )
171+ self .runScut .activated .connect (self .runSelectedCode ) #spellok
172172 self .runScriptScut = QShortcut (QKeySequence (Qt .SHIFT + Qt .CTRL + Qt .Key_E ), self )
173173 self .runScriptScut .setContext (Qt .WidgetShortcut )
174174 self .runScriptScut .activated .connect (self .runScriptCode )
@@ -307,9 +307,9 @@ def contextMenuEvent(self, e):
307307 syntaxCheck = menu .addAction (iconSyntaxCk ,
308308 QCoreApplication .translate ("PythonConsole" , "Check Syntax" ),
309309 self .syntaxCheck , 'Ctrl+4' )
310- runSelected = menu .addAction (iconRun ,
310+ runSelected = menu .addAction (iconRun , #spellok
311311 QCoreApplication .translate ("PythonConsole" , "Run Selected" ),
312- self .runSelectedCode , 'Ctrl+E' )
312+ self .runSelectedCode , 'Ctrl+E' ) #spellok
313313 menu .addAction (iconRunScript ,
314314 QCoreApplication .translate ("PythonConsole" , "Run Script" ),
315315 self .runScriptCode , 'Shift+Ctrl+E' )
@@ -358,14 +358,14 @@ def contextMenuEvent(self, e):
358358 pasteAction .setEnabled (False )
359359 codePadAction .setEnabled (False )
360360 cutAction .setEnabled (False )
361- runSelected .setEnabled (False )
361+ runSelected .setEnabled (False ) #spellok
362362 copyAction .setEnabled (False )
363363 selectAllAction .setEnabled (False )
364364 undoAction .setEnabled (False )
365365 redoAction .setEnabled (False )
366366 showCodeInspection .setEnabled (False )
367367 if self .hasSelectedText ():
368- runSelected .setEnabled (True )
368+ runSelected .setEnabled (True ) #spellok
369369 copyAction .setEnabled (True )
370370 cutAction .setEnabled (True )
371371 codePadAction .setEnabled (True )
@@ -600,7 +600,7 @@ def runScriptCode(self):
600600 self .parent .pc .shell .runCommand (u"exec(open(u'{0}'.encode('{1}')).read())"
601601 .format (filename .replace ("\\ " , "/" ), sys .getfilesystemencoding ()))
602602
603- def runSelectedCode (self ):
603+ def runSelectedCode (self ): #spellok
604604 cmd = self .selectedText ()
605605 self .parent .pc .shell .insertFromDropPaste (cmd )
606606 self .parent .pc .shell .entered ()
0 commit comments