|
2008-08-14
, 21:04
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#2
|
|
2008-08-18
, 18:23
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#3
|
import gtk import hildondesktop class statusbar_applet(hildondesktop.StatusbarItem): def __init__(self): hildondesktop.StatusbarItem.__init__(self) button = gtk.Button() button.set_image(gtk.image_new_from_stock(gtk.STOCK_YES, gtk.ICON_SIZE_MENU)) button.set_name("hildon-navigator-button-one") button.set_size_request(80,80) button.connect("clicked",self.button_clicked_event) self.add(button) self.show_all() def button_clicked_event(self,widget,data=None): mdlg = gtk.MessageDialog(None,0,gtk.MESSAGE_INFO,gtk.BUTTONS_OK,"Hello World!") mdlg.run() mdlg.destroy() def hd_plugin_get_objects(): plugin = statusbar_applet() return [plugin]
|
2008-08-19
, 15:54
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#4
|
[Desktop Entry] Name=Python SBar Type=python X-Path=pystatbar
The Following 3 Users Say Thank You to tz1 For This Useful Post: | ||
|
2008-08-19
, 19:11
|
|
Posts: 480 |
Thanked: 378 times |
Joined on Apr 2008
@ Chicago-ish
|
#5
|
|
2008-08-19
, 20:03
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#6
|
The Following User Says Thank You to mikkov For This Useful Post: | ||
|
2008-08-19
, 20:08
|
|
Posts: 480 |
Thanked: 378 times |
Joined on Apr 2008
@ Chicago-ish
|
#7
|
|
2008-08-19
, 20:10
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#8
|
|
2008-08-19
, 20:23
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#9
|
Alright, thanks for the links! I have both python2.5-hildondesktop and hildon-desktop-python-loader installed, but like I said, when I enable the python statusbar item I made (following tz1's instructions), I just get the Display item. If I have the display item enabled, then nothing new shows up...
Unfortunately, like tz1 said, there are NO error messages when something fails...
|
2008-08-19
, 20:35
|
|
Posts: 480 |
Thanked: 378 times |
Joined on Apr 2008
@ Chicago-ish
|
#10
|
Is it even possible to create a python statusbar applet, and if so, is there an example source/desktop file?