Index: st2.py ================================================================== --- st2.py +++ st2.py @@ -234,11 +234,13 @@ self.current_channel = notebook.get_menu_label_text(notebook.get_nth_page(page_num)) log.UI("main.channel_switch() :=", self.current_channel) self.update_title() # if first selected, load current category # (run in thread, to make it look speedy on first startup) - self.thread( self.channel().first_show ) + self.thread( + self.channel().first_show + ) # Invoked from the menu instead, uses module name instead of numeric tab id def channel_switch_by_name(self, name): self.notebook_channels.set_current_page(self.channel_names.index(name)) @@ -359,23 +361,24 @@ # init sbar_cid = self.get_widget("statusbar").get_context_id("messages") # remove text while ((not text) and (type(text)==str) and len(sbar_msg)): sbar_msg.pop() - uikit.do(lambda:self.statusbar.pop(sbar_cid)) + uikit.do(self.statusbar.pop, sbar_cid, immediate=1) # progressbar if (type(text)==float): if text >= 0.999 or text < 0.0: # completed - uikit.do(lambda:self.progress.hide()) + uikit.do(self.progress.hide) else: # show percentage - uikit.do(lambda:self.progress.show() or self.progress.set_fraction(text)) + uikit.do(self.progress.show, immediate=1) + uikit.do(self.progress.set_fraction, text, immediate=1) if (text <= 0): # unknown state - uikit.do(lambda:self.progress.pulse()) + uikit.do(self.progress.pulse, immediate=1) # add text elif (type(text)==str): sbar_msg.append(1) - uikit.do(lambda:self.statusbar.push(sbar_cid, text)) + uikit.do(self.statusbar.push, sbar_cid, text, immediate=1) pass # load plugins from /usr/share/streamtuner2/channels/ def load_plugin_channels(self):