I'm a really a newbie in Python and maemo development, so sorry in advance for my silly questions.
I've studied the tutorial about GUI...really impressive, but now I want to go forward and I'd like to learn how to use binding modules...
I've found on pymaemo web site some examples about abook, the python module that is used to access address book.
In these examples ther's an
Code:
impot abook
statement.
when I try to launch it...an error message is displayed like this:
ImportError: No module named abook
On the device I've installed the pymaemo env and I'm using Pluthon on windows platform (I've tried also ESbox from Ubuntu...and evenmore...directly onto the device with pyGTKEditor).
Oooh, exciting. That's new; I dunno if they've released it yet.
Originally Posted by
I've already looked source code of Hermes, and in contact.py the author[...]
...that's me :-)...
Originally Posted by
[...]used abook as import statement
Not that I can see. I was wrong, it doesn't use abook at the moment (it did in an earlier version). contacts.py uses ctypes to access the low-level C API of libebook (i.e. Evolution), due to limitations in python-evolution.
Whereas, hermes.py uses the "proper" Python API: python-evolution.
Sorry for any confusion. Anyway, you can access libabook via ctypes; I've done it in earlier versions of Hermes; but it's not very Pythonic.
Oh...let me say that your Hermes sounds very good...
so we've to check if that binding has been released yet.
I was trying an approach without using C language because I'm a little afraid with it...I studied it a bit at college, but I became a Java fan with passing of time
Python is simpler for me (despite I never used it before today )
I'll use some of your tips to improve my maemo development experience.
When asked about this I was told that abook is for Maemo 4.x versions (even though this page http://pymaemo.garage.maemo.org/development.html incorrectly lists that API for Maemo 5). For now use ctypes (or check how Hermes does it :-)
When asked about this I was told that abook is for Maemo 4.x versions (even though this page http://pymaemo.garage.maemo.org/development.html incorrectly lists that API for Maemo 5). For now use ctypes (or check how Hermes does it :-)
Exactly. That page was incorrect and, as part of a website reorganization, we moved the components descriptions to the wiki: http://wiki.maemo.org/PyMaemo/Components