|
|
2008-02-13
, 13:47
|
|
|
Posts: 341 |
Thanked: 68 times |
Joined on Aug 2007
|
#31
|
|
|
2008-02-14
, 14:47
|
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#32
|
|
|
2008-02-18
, 13:05
|
|
|
Posts: 270 |
Thanked: 610 times |
Joined on Nov 2007
@ Leipzig/Germany
|
#33
|
|
|
2008-02-18
, 21:45
|
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#34
|
[Desktop Entry] Name=Demo Desktop Applet Type=python X-Path=desktop-applet
import gtk
import hildondesktop
import os
class DesktopApplet(hildondesktop.HomeItem):
def Button_clicked(self, Widget, Data = None):
os.spawnlp(os.P_NOWAIT, "maemo-invoker", "maemo-invoker", "osso-xterm.launch")
def __init__(self):
hildondesktop.HomeItem.__init__(self)
Button = gtk.Button()
Image = gtk.image_new_from_file("/usr/share/icons/hicolor/64x64/apps/terminal.png")
Button.set_image(Image)
Button.connect("clicked", self.Button_clicked)
Button.show()
self.add(Button)
def hd_plugin_get_objects():
plugin = DesktopApplet()
return [plugin]
|
|
2009-08-15
, 12:20
|
|
Posts: 308 |
Thanked: 62 times |
Joined on Jun 2009
@ Turkiye
|
#35
|