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 config = frame.np.config.sections IconNotebook.__init__( self, self.frame.images, angle=config["ui"]["labelprivate"], tabclosers=config["ui"]["tabclosers"], show_hilite_image=config["notifications"]["notification_tab_icons"], reorderable=config["ui"]["tab_reorderable"], show_status_image=config["ui"]["tab_status_icons"], notebookraw=self.frame.PrivatechatNotebookRaw ) self.popup_enable() self.connected = 1 self.users = {} self.clist = [] self.notebook.connect("switch-page", self.on_switch_chat) # Clear list of previously open chats if we don't want to restore them if not frame.np.config.sections["privatechat"]["store"]: frame.np.config.sections["privatechat"]["users"].clear()
def __init__(self, frame, subwindow, notebookraw): self.frame = frame ui = frame.np.config.sections["ui"] IconNotebook.__init__(self, self.frame.images, angle=ui["labelinfo"], tabclosers=ui["tabclosers"], show_image=ui["tab_icons"], reorderable=ui["tab_reorderable"], show_status_image=ui["tab_status_icons"], notebookraw=notebookraw) self.popup_enable() self.subwindow = subwindow self.users = {} self.mytab = None
def __init__(self, frame): self.frame = frame ui = frame.np.config.sections["ui"] IconNotebook.__init__(self, self.frame.images, angle=ui["labelprivate"], tabclosers=ui["tabclosers"], show_image=ui["tab_icons"], reorderable=ui["tab_reorderable"], show_status_image=ui["tab_status_icons"], notebookraw=self.frame.PrivatechatNotebookRaw) self.popup_enable() self.connected = 1 self.users = {} self.clist = [] self.Notebook.connect("switch-page", self.OnSwitchPage)
def __init__(self, frame, subwindow, notebookraw, tab_label, tab_name): self.frame = frame ui = frame.np.config.sections["ui"] IconNotebook.__init__( self, self.frame.images, angle=ui["labelinfo"], tabclosers=ui["tabclosers"], show_hilite_image=self.frame.np.config.sections["notifications"] ["notification_tab_icons"], reorderable=ui["tab_reorderable"], show_status_image=ui["tab_status_icons"], notebookraw=notebookraw) self.popup_enable() self.subwindow = subwindow self.users = {} self.tab_label = tab_label self.tab_name = tab_name
def __init__(self, frame): self.frame = frame config = frame.np.config.sections IconNotebook.__init__( self, self.frame.images, angle=config["ui"]["labelprivate"], tabclosers=config["ui"]["tabclosers"], show_hilite_image=config["notifications"] ["notification_tab_icons"], reorderable=config["ui"]["tab_reorderable"], show_status_image=config["ui"]["tab_status_icons"], notebookraw=self.frame.PrivatechatNotebookRaw) self.popup_enable() self.connected = 1 self.users = {} self.clist = [] self.notebook.connect("switch-page", self.on_switch_page)