[maemo-developers] [maemo-developers] python hildon window doesn't get hildon look
From: Theodore A. Roth taroth at gmail.comDate: Fri Aug 18 23:26:23 EEST 2006
- Previous message: [maemo-developers] Future features for Maemo Desktop (Task Navigator, Home, Status bar)?
- Next message: [maemo-developers] python hildon window doesn't get hildon look
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I've been digging hi and low on the internet for an answer to this with no luck. I can not seem to get a python program to have the hildon look. From the http://www.maemo.org/platform/docs/pymaemo/python_maemo_howto.html document, I tried these two programs: ---- prog 1 ---- Nokia770-27:~# cat hw-gtk.py #!/usr/bin/env python2.4 import gtk if __name__ == "__main__": window = gtk.Window(gtk.WINDOW_TOPLEVEL) label = gtk.Label("Hello World!") window.add(label) label.show() window.show() gtk.main() ----- ---- prog 2 ---- Nokia770-27:~# cat hw-hildon-2.py #!/usr/bin/env python2.4 import gtk import hildon if __name__ == "__main__": window = hildon.Window() window.connect("destroy", gtk.main_quit) label = gtk.Label("Hello World!") window.add(label) label.show() window.show() gtk.main() ----- Both are straight out of the document. And both look exactly the same when run on the Nokia device (with SDK installed). I would expect the second to _not_ look like a gtk app, but look like a native hildon app (i.e. have the proper window borders and to look like the picture in the document). Am I over looking something? Do I need to update the python package? Ted Here's what's installed on my system: Nokia770-27:~# COLUMNS=150 dpkg -l '*python*' | grep '^ii' | awk '{print $2, $3}' python2.4 2.4.2-1osso13 python2.4-bluez 0.6.1-1osso5 python2.4-dbus 0.61-1osso5 python2.4-gstreamer 0.10.4-0osso1 python2.4-gtk2 2.6.3-1osso6 python2.4-hildon 0.8.6-1osso1 python2.4-numeric 24.2-1osso3 python2.4-osso 0.1-1osso4 python2.4-pygame 1.6-2osso5 python2.4-pyrex 0.9.3-1osso6 python2.4-runtime 0.2-2 python2.4-xml 0.8.4-1osso8
- Previous message: [maemo-developers] Future features for Maemo Desktop (Task Navigator, Home, Status bar)?
- Next message: [maemo-developers] python hildon window doesn't get hildon look
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]