Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A styled text widget for wxpython.

Project Description


Wxtextview is widget for the wx toolkit and is written completely in python. It has the functionality of a rich text editor and can handle even very long texts without beeing slow. All layout and editor logic is implemented in python. Only basic drawing commands are used from the wx toolkit. It is therefore easy to adapt it to other GUI-toolkits.

There are two demos showing advanced possibilities of WXTextView: notebook interface similar to mathematica / ipython demonstration of editing math equations


Running the demos:

Just cd to the demo directory and execute the scripts. No installation is needed. External dependencies are textmodel (all demos), wxpython (all demos) and matplotlib (notebook). The demos were tested on linux, windows and mac platforms.

$ cd demo/
$ python

Using the wxtextview-widget:

from wxtextview import WXTextView
from textmodel import TextModel

import wx
app = wx.App()

model = TextModel(u'Hello World!')
model.set_properties(6, 11, fontsize=14)
model.set_properties(6, 11, bgcolor='yellow')

# display the texmodel in a view
frame = wx.Frame(None)
view = WXTextView(frame, -1)
view.model = model

# set cursor and selection
view.index = 5
view.selection = 0, 5

# display the same textmodel in a second view
frame2 = wx.Frame(None)
view2 = WXTextView(frame2, -1)
view2.model = model


Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(35.7 kB) Copy SHA256 Hash SHA256
Source None Feb 5, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate