def __init__(self): Toolbox.__init__(self) self.search_toolbar = SearchToolbar() self.search_toolbar.set_size_request(-1, style.GRID_CELL_SIZE) self.add_toolbar(_('Search'), self.search_toolbar) self.search_toolbar.show()
def __init__(self, activity): print "ActivityToolboxXO2XO.init" Toolbox.__init__(self) self._activity_toolbar = ActivityToolbarXO2XO(activity) self.add_toolbar('Activity', self._activity_toolbar) self._activity_toolbar.show() print "[END]ActivityToolboxXO2XO.init"
def __init__(self, mailactivity): gtk.gdk.threads_init() Toolbox.__init__(self) home_toolbar = HomeToolbar(mailactivity) self.add_toolbar(_('Home'), home_toolbar) home_toolbar.show() read_toolbar = read.ReadToolbar(mailactivity) self.add_toolbar(_('Read'), read_toolbar) read_toolbar.show() #if it's not reading or getting mail, we don't need it right now! ''' write_toolbar = write.WriteToolbar(mailactivity) self.add_toolbar(_('Write'), write_toolbar) write_toolbar.show() contacts_toolbar = contacts.ContactsToolbar(mailactivity) self.add_toolbar(_('Contacts'), contacts_toolbar) ontacts_toolbar.show() configure_toolbar = configure.ConfigureToolbar(mailactivity) self.add_toolbar(_('Configure'), configure_toolbar) configure_toolbar.show() ''' self.toolbars = {0: home_toolbar, 1: read_toolbar, #2: write_toolbar, #3: contacts_toolbar, #4: configure_toolbar } self.connect('current-toolbar-changed', self.__toolbar_changed_cb, mailactivity)
def __init__(self, activity): Toolbox.__init__(self) self._activity_toolbar = ActivityToolbar(activity) self.add_toolbar(_('Activity'), self._activity_toolbar) self._activity_toolbar.show()
def __init__(self): Toolbox.__init__(self) self.entry_toolbar = EntryToolbar() self.add_toolbar('', self.entry_toolbar) self.entry_toolbar.show()