Active Topics

 


Reply
Thread Tools
Posts: 131 | Thanked: 36 times | Joined on Dec 2009 @ Spain
#1
When I try to execute python scripts, I always receive the following message:

"home/user/.osso/current-gtk-key-theme:1: Unable to find include file:"keybindings.rc"

What means that message?

I have installed:
maemo-python-env 1.1.0-2
python2.5-pynotify
python2.5-runtime (by apt-get)

Is any package missing?

I can find many information about pymaemo for maemo5 but not for OS2008...
 
Posts: 131 | Thanked: 36 times | Joined on Dec 2009 @ Spain
#2
Executing the python code as root I can avoid this message. However, now I have a new problem with HILDON_SIZE variables and since I want to try button functions these is requirement.

I tried with many attributes like:
gtk.HILDON_SIZE_AUTO
gtk.HILDON_SIZE_AUTO_HEIGHT
gtk.HILDON_SIZE_FINGER_HEIGHT

and different button functions:
hildon.Button()
gtk.Button()


But always with an error:

Attribute Error: 'module' object has no attribute
'HILDON_SIZE_AUTO"

The I tried to list gtk and hildon, (for hildon using dir(hildon))

code]~ $ python
>>> import gtk
>>> print '\n'.join(x for x in dir(gtk) if x.startswith('HILDON_SIZE_'))


And there is no output lines for these attribute names.

I have some python apps working correctly, such as gpodder, pygtkeditor, mediabox,... which I suppose are using hildon attributes..

Why is my code failing?


Originally Posted by daperezg View Post
When I try to execute python scripts, I always receive the following message:

"home/user/.osso/current-gtk-key-theme:1: Unable to find include file:"keybindings.rc"

What means that message?

I have installed:
maemo-python-env 1.1.0-2
python2.5-pynotify
python2.5-runtime (by apt-get)

Is any package missing?

I can find many information about pymaemo for maemo5 but not for OS2008...
 
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#3
HildonButton and the size enums are implemented in a newer libhildon that only Maemo 5 has. You have to use a normal Gtk.Button on OS2008
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:53.