![]() |
2009-08-25
, 13:54
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#252
|
![]() |
2009-08-25
, 15:47
|
|
Posts: 124 |
Thanked: 34 times |
Joined on Mar 2007
|
#253
|
import gtk import hildondesktop #import hildon class QuickDial(hildondesktop.HomeItem): #class QuickDial(hildon.Window): def __init__(self): hildondesktop.HomeItem.__init__(self) #hildon.Window.__init__(self) self.label = gtk.Label() self.label.set_text("Hello World!") self.add(self.label) self.connect("destroy", gtk.main_quit) self.show_all() def hd_plugin_get_objects(): plugin = QuickDial() return [plugin] if __name__ == "__main__": objects = hd_plugin_get_objects() gtk.main()
[Desktop Entry] Name=QuickDial Type=python X-Path=quickdial.py
![]() |
2009-08-26
, 00:12
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#254
|
I've started hacking on a home applet to provide access to a quickdial list, or messages, etc.
Given that I'd like to reuse as much Dialcentral code as possible, it's being written in python using the hildon-desktop-python-loader and python-hildondesktop bindings.
I've looked at the homememfree applet source code, which is also written in python.
But when I try to write a simple applet that displays just a label with static text, it doesn't work. It shows up in the list of available applets just fine, but when I select it, it does nothing, and going back to the list of applets shows it deselected.
If I convert the exact code I have to instead inherit from hildon.Window instead of hildondesktop.HomeItem, it runs fine as a regular program.
Anybody have any hints for debugging this kind of thing?
/usr/lib/hildon-desktop/quickdial.py
/usr/share/applications/hildon-home/quickdial.desktopCode:import gtk import hildondesktop #import hildon class QuickDial(hildondesktop.HomeItem): #class QuickDial(hildon.Window): def __init__(self): hildondesktop.HomeItem.__init__(self) #hildon.Window.__init__(self) self.label = gtk.Label() self.label.set_text("Hello World!") self.add(self.label) self.connect("destroy", gtk.main_quit) self.show_all() def hd_plugin_get_objects(): plugin = QuickDial() return [plugin] if __name__ == "__main__": objects = hd_plugin_get_objects() gtk.main()
Code:[Desktop Entry] Name=QuickDial Type=python X-Path=quickdial.py
![]() |
2009-08-26
, 12:25
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#255
|
![]() |
2009-08-26
, 16:26
|
Posts: 194 |
Thanked: 39 times |
Joined on Sep 2008
|
#256
|
At night I turn off wifi(offline mode) to save battery life (I turn off wifi so when a new email comes the LED doesn't stay flashing all night and use up battery). But lately it seems to do the opposite. When I turn it on in the morning the battery has gone down more than during the day. I don't know if it is just my imagination, but it seems to be consistent. I'll try turning off notifications at night and see if it makes a difference. Anybody else experience this or is it just me?
The Following User Says Thank You to icbolsh For This Useful Post: | ||
![]() |
2009-08-27
, 10:30
|
Posts: 49 |
Thanked: 6 times |
Joined on Jun 2009
|
#257
|
![]() |
2009-08-28
, 00:38
|
Posts: 194 |
Thanked: 39 times |
Joined on Sep 2008
|
#258
|
One more thing:
Whenever I open up DC and try to dial in a number then hit dial, it won't call me. Contacts works just fine though. Also keep in mind epage my NIT was having issues with the whole broken version issue.
![]() |
2009-08-28
, 04:08
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#259
|
![]() |
2009-08-28
, 05:00
|
Posts: 240 |
Thanked: 48 times |
Joined on Apr 2009
|
#260
|
Also on the first post of this thread is a general set of steps to walk through in figuring out what is wrong.
Good luck. let us know how it works out.
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog