Table Of Contents

Previous topic

PyShellInput

Next topic

sized_controls

This Page

phoenix_title PyShellOutput

PyShell output window

for now, it is based on simple wxTextCtrl, but i’m looking at HTML classes to provide colorized output


class_hierarchy Inheritance Diagram

Inheritance diagram for class PyShellOutput

Inheritance diagram of PyShellOutput


super_classes Known Superclasses

Panel


method_summary Methods Summary

__init__  
AddText write text to output window
BeginBatch do not refresh display till EndBatch()
EndBatch end batch; start updating display immediately
flush write out all that was left in line buffer
OnIdle when there’s nothing to do, we can update display
OnSize  
UpdWindow sync display with text buffer
write stdout-like interface
write_exc write text in “exception” style
write_in write text in “input” style

api Class API



class PyShellOutput(Panel)

PyShell output window

for now, it is based on simple wxTextCtrl, but i’m looking at HTML classes to provide colorized output


Methods



__init__(self, parent, id=-1)


AddText(self, text, style=None)

write text to output window



BeginBatch(self)

do not refresh display till EndBatch()



EndBatch(self)

end batch; start updating display immediately



flush(self, style=None)

write out all that was left in line buffer



OnIdle(self, event)

when there’s nothing to do, we can update display



OnSize(self, event)


UpdWindow(self)

sync display with text buffer



write(self, str, style=None)

stdout-like interface



write_exc(self, str, style=None)

write text in “exception” style



write_in(self, str, style=None)

write text in “input” style