maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Python hildon crossplatfom development (https://talk.maemo.org/showthread.php?t=21641)

Lee 2008-07-06 02:01

Python hildon crossplatfom development
 
Does any one know of a fake python hildon module that can be used on other pygtk platforms? Or is there a better way of doing crossplatfom development?

If there isn't I'm thinking it might also work if I created my own wrapper.

brontide 2008-07-06 02:51

Re: Python hildon crossplatfom development
 
I've been using the following

Code:

try:
    import hildon
except ImportError:
    hildon = None

...

if hildon:
  Something hildon related
else:
  Something desktop related

Seems to work well enough. Check the Grandcentral dialer svn to see it in action.

yerga 2008-07-06 08:49

Re: Python hildon crossplatfom development
 
Quote:

Originally Posted by Lee (Post 199766)
Does any one know of a fake python hildon module that can be used on other pygtk platforms? Or is there a better way of doing crossplatfom development?

If there isn't I'm thinking it might also work if I created my own wrapper.

mmm, brontide replied you very well.

Note that the hildon library is available in debian/ubuntu. You only need compile the hildon python module against it. So sometimes you don't need change the hildon library, and you can use the hildon module in python.

yerga 2008-07-07 12:04

Re: Python hildon crossplatfom development
 
2 Attachment(s)
I have compiled the hildon module in debian (but it could work in other platforms).

It mainly work, having installed some of the hildon libraries in the system, except the hildon.filechooser dialogs.


All times are GMT. The time now is 01:12.

vBulletin® Version 3.8.8