Commit Graph

6 Commits

Author SHA1 Message Date
Kim Silkebækken c5555d5637 Update all examples to work with the latest changes 2012-12-13 14:59:16 +01:00
Kim Silkebækken 5d2214db52 Make the examples work with the new project structure 2012-12-06 15:07:41 +01:00
Kim Silkebækken 091840ac67 Fix terminal prompt example 2012-11-26 16:18:26 +01:00
Kim Silkebækken 1d3c259070 Improve rendering performance
This change removes the Segment class as this takes forever to remove
from the segment array when removing low-priority segments. It has
instead been replaced by a wrapper function that works the same and
returns a working dict of all segment properties.

The regex substitution bottleneck in the vim example has been fixed by
using a single-character percent placeholder in vim segments which is
later replaced with a double percent using str.replace().
2012-11-21 11:33:10 +01:00
Kim Silkebækken a532da4834 Fix issues with the terminal prompt example 2012-11-17 16:42:34 +01:00
Kim Silkebækken 1d1021992f Update vim and terminal examples
The examples have been moved into their own directory. The vim example
now uses pyeval() and vim.bindeval() and loads the Python file through
an import (so it gets compiled) for speed improvements.
2012-11-16 17:05:55 +01:00