![]() |
2008-02-11
, 12:29
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#2
|
![]() |
2008-02-11
, 13:07
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#3
|
![]() |
2008-02-11
, 23:43
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#4
|
[Desktop Entry] Name=Python Test Type=python X-Path=pythontest
import gtk import hildondesktop class PythonTestApp(hildondesktop.TaskNavigatorItem): def __init__(self): hildondesktop.TaskNavigatorItem.__init__(self) image = gtk.Image() image.set_from_stock(gtk.STOCK_CUT, gtk.ICON_SIZE_LARGE_TOOLBAR) button = gtk.Button() button.connect("clicked", self.clicked, None) button.set_image(image) button.set_size_request(80, 80); button.show() self.add(button) def hd_plugin_get_objects(): plugin = PythonTestApp() return [plugin]
![]() |
2008-02-14
, 23:02
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#5
|
[Desktop Entry] Name=X Terminal Launcher Type=python X-Path=xterm-launch Icon=terminal
import gtk import hildondesktop import os class XTermLaunch(hildondesktop.TaskNavigatorItem): def clicked(self, widget, Data = None): os.spawnlp(os.P_NOWAIT, "maemo-invoker", "maemo-invoker", "osso-xterm.launch") def __init__(self): hildondesktop.TaskNavigatorItem.__init__(self) image = gtk.image_new_from_file("/usr/share/icons/hicolor/64x64/apps/terminal.png") button = gtk.Button() button.set_image(image) button.connect("clicked", self.clicked, None) button.show() self.add(button) def hd_plugin_get_objects(): plugin = XTermLaunch() return [plugin]
![]() |
2008-02-15
, 15:35
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#6
|
![]() |
2008-02-15
, 22:16
|
Posts: 88 |
Thanked: 15 times |
Joined on Jun 2007
|
#7
|
![]() |
2008-02-16
, 13:42
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#8
|
Sweet! A single launcher is certainly more useful (to me) than the non-editable contacts button. Perhaps I should learn enough Python to make a second menu... Thanks for showing the way!
![]() |
2008-02-16
, 13:47
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#9
|
SpiritGeek - do you have an example of making a multi application menu (like the default one)? I'd love to have a menu with just my test apps.
![]() |
2008-02-16
, 17:13
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#10
|
1) Does anyone know if it's still possible to do this in OS 2008?
2) If so, does anyone know where to find more documentation?
Thanks!