![]() |
2010-04-30
, 09:59
|
Posts: 883 |
Thanked: 980 times |
Joined on Jul 2007
@ Bern, Switzerland
|
#2
|
The Following User Says Thank You to twaelti For This Useful Post: | ||
![]() |
2010-04-30
, 16:27
|
Posts: 11 |
Thanked: 24 times |
Joined on Apr 2010
@ Mashhad, Iran
|
#3
|
signal.signal(signal.SIGALRM, lambda signum, frame: self.update_calendar()) signal.alarm(int(86400 - (time.time() - time.mktime(time.strptime(time.strftime('%Y%m%d'), '%Y%m%d')))))
![]() |
2010-04-30
, 16:41
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#4
|
![]() |
2010-04-30
, 17:21
|
Posts: 11 |
Thanked: 24 times |
Joined on Apr 2010
@ Mashhad, Iran
|
#5
|
![]() |
2010-05-01
, 20:38
|
Posts: 11 |
Thanked: 24 times |
Joined on Apr 2010
@ Mashhad, Iran
|
#6
|
import dbus from dbus.mainloop.glib import DBusGMainLoop DBusGMainLoop(set_as_default=True) bus = dbus.SystemBus() bus.add_signal_receiver(self.update_calendar, dbus_interface="com.nokia.alarmd", signal_name='time_change_ind', path='/com/nokia/alarmd')
I'm writing a calendar widget for maemo5 using python something like datetoday-home-widget and I'm almost done. the only thing remained is that I don't know how to be informed when the date changes so I can redraw the widget.
Does any body know how to implement it in python or any reference or sample code?