[Sugar-devel] question about jarabe/view/palette.py
Walter Bender
walter.bender at gmail.com
Mon Jul 12 07:27:12 EDT 2010
I am experimenting with moving the naming alert to the Frame (as per
the discussion in this weekend's design meeting.) It seems the place
to do it is in jarabe/view/palette.py however I cannot seem to
properly navigate the class hierarchy. My code is pretty simple:
menu_item = MenuItem(_('Write to Journal'), 'journal-write')
menu_item.connect('activate', self.__journal_write__cb)
self.menu.append(menu_item)
menu_item.show()
def __journal_write__cb(self, menu_item):
title_alert = NamingAlert(self._home_activity, # TODO: what is what?
self._home_activity.get_bundle_path())
title_alert.set_transient_for(self.get_toplevel())
title_alert.show()
self.reveal()
However self._home_activity is not an activity.
Question: how do I find the activity from _home_activity?
-walter
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
More information about the Sugar-devel
mailing list