Initial commit
[pyghosd.git] / ghosd.py
blob9e606f28facd533ed3d42126fb23b4d08b6b1e36
1 """
2 ghosd for Python
4 Right now, this does not contain bindings for ghosd, but a simple hack
5 to bring parametrable ghosd'ed text display facility to Python. It
6 doesn't rely on any high-level Python bindings (PyGTK, Pycairo, ...)
7 either. Usage is pretty simple:
9 >>> from ghosd import flash_text
10 >>> flash_text(\"<span font_desc='Trebuchet 30'>Hello, world!</span>\")
11 """
12 # We don't really need this frontend right now, but who knows...
14 from _ghosd import *
16 # An example? All right: here is a copycat of ghosd-0.0.1/examples/text.c
18 if __name__ == '__main__':
19 # It doesn't get easier than that. ;-D
21 flash_text("<span font_desc='Trebuchet 30'>"
22 "some sample text using <b>pyghosd</b>"
23 "</span>")