[pygtk] date changed signal ?
Walter Leibbrandt
walter at translate.org.za
Mon Mar 2 17:01:43 WST 2009
Hi,
Darren Hart wrote:
> I have a TreeView that renders rows differently depending on the state
> of the object being represented. This state is in part dependent on
> the date. Rather than calculate the state everytime I render the row,
> I set the state explicitly when certain events occur. Is there some
> kind of datechanged() signal I can register a callback for? Or do I
> just need to setup timers every minute or so to check if the date is
> different than last time? This approach seems like overkill for
> something that happens once every 24 hours, and at a time when the app
> is unlikely to be being used - but I'm trying to be thorough :-)
>
> Thanks
I am not aware of any such signal in gtk-/gobject space. Maybe some
other service (like dbus) has something that can suite your needs?
Personally, I would go for a simple gobject.timeout_add() call.
HTH
--
Walter Leibbrandt http://translate.org.za/blogs/walter
Software Developer +27 12 460 1095 (w)
Translate.org.za
Recent blogs:
* Virtaal's MVCisation
http://www.translate.org.za/blogs/walter/en/content/virtaals-mvcisation
* Things that changed the way I code
* Switching from Subversion to git
More information about the pygtk
mailing list