Table Of Contents

Previous topic

shell

Next topic

PyShellInput

This Page

phoenix_title PyShell

interactive Python shell with wxPython interface


class_hierarchy Inheritance Diagram

Inheritance diagram for class PyShell

Inheritance diagram of PyShell


super_classes Known Superclasses

Panel


method_summary Methods Summary

__init__ create PyShell window
OnSetFocus  
OnSize  
ShowException display the traceback for the latest exception
ShowSyntaxError display message about syntax error (no traceback here)
TryExec Compile and run some source in the interpreter.

api Class API



class PyShell(Panel)

interactive Python shell with wxPython interface


Methods



__init__(self, parent, globals=globals(), locals={}, id=-1, pos=DefaultPosition, size=DefaultSize, style=TAB_TRAVERSAL, name="shell")

create PyShell window



OnSetFocus(self, event)


OnSize(self, event)


ShowException(self)

display the traceback for the latest exception



ShowSyntaxError(self)

display message about syntax error (no traceback here)



TryExec(self, source, symbol="single")

Compile and run some source in the interpreter.

borrowed from code.InteractiveInterpreter().runsource() as i said above, i would rather like to inherit from that class

returns 1 if more input is required, or 0, otherwise