Module pythonConsole
[hide private]
[frames] | no frames]

Module pythonConsole

source code

Provides an interactive Python console which can be run from within NVDA. To use, call initialize to create a singleton instance of the console GUI. This can then be accessed externally as consoleUI.

Classes [hide private]
  HelpCommand
Emulation of the 'help' command found in the Python interactive shell.
  ExitConsoleCommand
An object that can be used as an exit command that can close the console or print a friendly message for its repr.
  PythonConsole
An interactive Python console for NVDA which directs output to supplied functions.
  ConsoleUI
The NVDA Python console GUI.
Functions [hide private]
 
initialize()
Initialize the NVDA Python console GUI.
source code
 
activate()
Activate the console GUI.
source code
Variables [hide private]
  consoleUI = None
hash(x)
Function Details [hide private]

initialize()

source code 

Initialize the NVDA Python console GUI. This creates a singleton instance of the console GUI. This is accessible as consoleUI. This may be manipulated externally.

activate()

source code 

Activate the console GUI. This shows the GUI and brings it to the foreground if possible.

Precondition: initialize has been called.