Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/README
blob: 9d4e3ab871b436bdd06e58fdf213ebb4d07b2fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PyBank
======

Python bindings for GIRepository, still under construction, don't
expect anything to work.

Requirements
------------
* Python 2.5
* GObject Introspection from git
* PyGObject SVN trunk revision 1030 or later

Usage
-----
You can test it by doing the following:

$ make

This will compile the bindings for gobject-introspection and build
metadata for a couple of test modules. Note that there is no install
mechanism.

When that is done, you can do the following:

>>> import bank

This will register an import hook for .typelib files.

Now, just import a module which exists as a .typelib file in the current
directory (or in the GI_TYPELIB_PATH environment variable):

>>> import Gtk
>>> Gtk.Button
<class 'Gtk.Button'>