Installing and start using Liblarch

Downloading liblarch

From tarballs

0.1 release tarballs

Packages

- Ubuntu: dev version available in GTG's daily PPA

Latest dev version

git clone https://github.com/liblarch/liblarch

Using liblarch in your pything application

If liblarch is not in your PATH (which is usually the case without proper packaging), you have to add it. If the liblarch folder is on the same level as your own application level, you can do:

   1 import sys
   2 sys.path.append("../liblarch/")

there are two modules you can import: liblarch and liblarch-gtk. Thus:

   1 import liblarch

(which contains the objects TreeNode, Tree and ViewTree)

or

   1 import liblarch-gtk

(which contains the object TreeView, extending gtk.TreeView)

Liblarch has an API version number in the form "1.2". The major number changes whenever an existing method is removed or modified. The minor number change whenever a method is added. This means that the major version has to match your requirement but the minor number only have to be bigger or equal to the number you've used during your development.

There's a method is_compatible() for that. You can also access the current liblarch API version with "api".

   1 import liblarch
   2 version_required = "1.0"
   3 print "current liblarch version: %s" %liblarch.api
   4 print "Compatibility: %s" %liblarch.is_compatible(version_required)

Projects/liblarch/installation (last edited 2013-11-22 17:24:32 by WilliamJonMcCann)