|
|
02-11-2008
, 08:29 AM
|
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#2
|
|
|
02-11-2008
, 09:07 AM
|
|
|
Posts: 972 |
Thanked: 716 times |
Joined on Jul 2007
@ France
|
#3
|

|
|
02-11-2008
, 07:43 PM
|
|
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]
|
|
02-14-2008
, 07:02 PM
|
|
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]
|
|
02-15-2008
, 11:35 AM
|
|
|
Posts: 4,928 |
Thanked: 2,247 times |
Joined on Oct 2007
|
#6
|
|
|
02-15-2008
, 06:16 PM
|
|
Posts: 88 |
Thanked: 15 times |
Joined on Jun 2007
|
#7
|
|
|
02-16-2008
, 09:42 AM
|
|
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!
|
|
02-16-2008
, 09:47 AM
|
|
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.
|
|
02-16-2008
, 01:13 PM
|
|
|
Posts: 972 |
Thanked: 716 times |
Joined on Jul 2007
@ France
|
#10
|
![]() |
| Thread Tools | Search this Thread |
|
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!