Excerpts from Erik Blankinship's message of Wed Feb 09 19:55:12 +0100 2011:
> class NotTodayActivity( activity.Activity ): > > def __init__( self, handle ): > activity.Activity.__init__( self, handle ) > > self._auto_shut_down = False > if not self.should_this_activity_run_today( ): > self._auto_shut_down = True > logger.debug( "goin' down" ) > self.close( ) > return There's a whole lot of stuff being run after Activity.__init__() before the activity is actually "started" (take a look at the source [1]). I haven't looked into it closely, but I suspect that your early self.close() hangs because the widgets are not set up yet. Sascha [1] http://git.sugarlabs.org/sugar-toolkit/mainline/blobs/master/src/sugar/activity/activity.py -- http://sascha.silbe.org/ http://www.infra-silbe.de/
signature.asc
Description: PGP signature
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel