Table of Contents

Class: Shell ./UI/Shell.py

Module implementing a graphical Python shell.

A user can enter commands that are executed in the remote Python interpreter.

Base Classes   
QTextEdit
Methods   
__init__
contentsContextMenuEvent
focusNextPrevChild
getBanner
getEndPos
handleClear
handleClientStatement
handlePreferencesChanged
handleReset
initialise
insertText
keyPressEvent
paste
raw_input
useHistory
write
writeBanner
  __init__ 
__init__ (
        self,
        dbs,
        parent=None,
        )

Constructor

Arguments

dbs
rference to the debug server object
parent
parent widget (QWidget)
  contentsContextMenuEvent 
contentsContextMenuEvent ( self,  ev )

Reimplemented to show our own context menu.

Arguments

ev
context menu event (QContextMenuEvent)
  focusNextPrevChild 
focusNextPrevChild ( self,  next )

Reimplemented to stop Tab moving to the next window.

While the user is entering a multi-line command, the movement to the next window by the Tab key being pressed is suppressed.

Arguments

next
next window

Returns

flag indicating the movement

  getBanner 
getBanner ( self )

Private method to get the banner for the remote interpreter.

It requests the Python version and platform running on the debug client side.

  getEndPos 
getEndPos ( self )

Private method to return the line and column of the last character.

Returns

tuple of two values (int, int) giving the line and column

  handleClear 
handleClear ( self )

Private slot to handle the clear context menu entry.

  handleClientStatement 
handleClientStatement ( self,  more )

Private method to handle the response from the debugger client.

Arguments

more
flag indicating that more user input is required
  handlePreferencesChanged 
handlePreferencesChanged ( self )

Public slot to handle the preferencesChanged signal.

  handleReset 
handleReset ( self )

Private slot to handle the reset context menu entry.

  initialise 
initialise ( self )

Private method to get ready for a new remote interpreter.

  insertText 
insertText ( self,  s )

Private method to insert some text at the current cursor position.

Arguments

s
text to be inserted (string or QString)
  keyPressEvent 
keyPressEvent ( self,  ev )

Re-implemented to handle the user input a key at a time.

Arguments

ev
key event (QKeyPressEvent)
  paste 
paste ( self )

Reimplemented slot to handle the paste action.

  raw_input 
raw_input ( self,  s )

Private method to handle raw input.

Arguments

s
prompt to be displayed (string or QString)
  useHistory 
useHistory ( self )

Private method to display a command from the history.

  write 
write ( self,  s )

Private method to display some text.

Arguments

s
text to be displayed (string or QString)
  writeBanner 
writeBanner (
        self,
        version,
        platform,
        dbgclient,
        )

Private method to write a banner with info from the debug client.

Arguments

version
Python version string (string)
platform
platform of the remote interpreter (string)
dbgclient
debug client type used (string)

Table of Contents

This document was automatically generated on Fri Mar 14 19:54:55 2003 by HappyDoc version 2.1