How do I use a custom cell renderer

By default, a wxPython grid displays its data as a simple string, however, you can also display your data in a different format. You may want Boolean data to display as a checkbox, or a numerical value to display in a graphical format, or a list of data to display as a sparkline.

In wxPython, each cell can have its own renderer, which allows it to display its data differently. The following sections discuss a few renderers that come predefined in wxPython, and how to define your own if you so desire.

Was this article helpful?

0 -1

Post a comment