def __init__(self, frame): self.frame = frame self.searchid = int(random.random() * (2 ** 31 - 1)) self.searches = {} self.usersearches = {} self.users = {} self.maxdisplayedresults = self.frame.np.config.sections['searches']["max_displayed_results"] self.maxstoredresults = self.frame.np.config.sections['searches']["max_stored_results"] ui = self.frame.np.config.sections["ui"] IconNotebook.__init__( self, self.frame.images, angle=ui["labelsearch"], tabclosers=ui["tabclosers"], show_image=self.frame.np.config.sections["notifications"]["notification_tab_icons"], reorderable=ui["tab_reorderable"], notebookraw=self.frame.SearchNotebookRaw ) self.popup_enable() self.wish_list = WishList(frame, self) self.update_colours()
def __init__(self, frame): self.frame = frame self.searches = {} self.usersearches = {} IconNotebook.__init__( self, self.frame.images, tabclosers=config.sections["ui"]["tabclosers"], show_hilite_image=config.sections["notifications"] ["notification_tab_icons"], notebookraw=self.frame.SearchNotebookRaw) self.load_config() self.wish_list = WishList(frame, self) self.update_visuals()