Browse Source

ENH: In pythonShell, the consoleWidget created internally is now set to be the focusProxy

See http://doc.qt.nokia.com/4.6/qwidget.html#setFocusProxy
Jean-Christophe Fillion-Robin 15 years ago
parent
commit
93cffdf3eb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Libs/Scripting/Python/Widgets/ctkPythonShell.cpp

+ 2 - 0
Libs/Scripting/Python/Widgets/ctkPythonShell.cpp

@@ -261,6 +261,8 @@ ctkPythonShell::ctkPythonShell(ctkAbstractPythonManager* pythonManager, QWidget*
 
 
   this->setObjectName("pythonShell");
   this->setObjectName("pythonShell");
 
 
+  this->setFocusProxy(&this->Implementation->Console);
+
   ctkPythonShellCompleter* completer = new ctkPythonShellCompleter(*this);
   ctkPythonShellCompleter* completer = new ctkPythonShellCompleter(*this);
   this->Implementation->Console.setCompleter(completer);
   this->Implementation->Console.setCompleter(completer);