GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.PyOnDemandOutputWindow
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.PyOnDemandOutputWindow — wxPython 4.3.2 Docs

phoenix_title wx.PyOnDemandOutputWindow¶

A class that can be used for redirecting Python’s stdout and stderr streams. It will do nothing until something is wrriten to the stream at which point it will create a Frame with a text area and write the text there.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class PyOnDemandOutputWindow:

Inheritance diagram of PyOnDemandOutputWindow


method_summary Methods Summary¶

__init__

CreateOutputWindow

OnCloseWindow

SetParent

Set the window to be used as the popup Frame’s parent.

close

flush

write

Create the output window if needed and write the string to it.


api Class API¶

class wx.PyOnDemandOutputWindow(object)¶

A class that can be used for redirecting Python’s stdout and stderr streams. It will do nothing until something is wrriten to the stream at which point it will create a Frame with a text area and write the text there.


Methods¶

__init__(self, title='wxPython: stdout/stderr')¶


CreateOutputWindow(self, txt)¶


OnCloseWindow(self, event)¶


SetParent(self, parent)¶

Set the window to be used as the popup Frame’s parent.



close(self)¶


flush(self)¶


write(self, text)¶

Create the output window if needed and write the string to it. If not called in the context of the gui thread then CallAfter is used to do the work there.

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.