From a4b1d7318f7cfc752ac3a8858006c0d6c796553e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Feb 2011 17:08:08 +0000 Subject: Install python bindings. Automating python pretty-printing for Value. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2941 a436a847-0d15-0410-975c-d299462d15a1 --- swig/slv2.i | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'swig/slv2.i') diff --git a/swig/slv2.i b/swig/slv2.i index 7d0c664..cb5279a 100644 --- a/swig/slv2.i +++ b/swig/slv2.i @@ -27,4 +27,10 @@ namespace SLV2 { return Iterator(self) %} }; +%extend Value { +%pythoncode %{ + def __str__(self): + return slv2_value_get_turtle_token(self.me) +%} +}; } -- cgit v1.2.1