wxPython match for Tkinter Text widget?

I'm looking for a wxPython class that does the same things as the Tkinter
'Text' widget. I need to have 25-row by 80-column text display.

wxTextCtrl doesn't seem so have a good way to set the display to 25 rows and
80 columns.
wxGrid would handle the rows/columns, but it would be one character per
cell, and that could get weird.

I have Python 2.2.2, wxPython 2.4.0.2, and this will need to run on Windows
2K and HPUX 11.x. Any ideas?

Thanks!
Dave

Eichorn, David wrote:

I'm looking for a wxPython class that does the same things as the Tkinter
'Text' widget. I need to have 25-row by 80-column text display.

I'm not specifically familiar with the Tkinter widget -- is this for display only, or does it accept keyboard input as well?

If the former, then you could probably use a wxStaticText widget, set it to a fixed-width font (which you'll pretty much need to do for anything that's enforcing 80 columns), and then use GetTextExtent (or the like) to find the appropriate size of an 80x25 block of characters and resize your wxStaticText to match. It's pretty easy to update the contents of a wxStaticText whenever the displayed text needs to change -- IIRC, a call to the SetText() method followed by a call to Refresh().

Jeff Shannon
Technician/Programmer
Credit International