Make uikit.do() manage a task spool itself. Run new tasks immediately if
invoked already within gtk_idle callback.
Move uikit.tree column creation into separate function, for immediate use
through GenericChannel.gui() - instead of destroying+repopulating it on
category-list reloads.
check-in: 7f51022370 user: mario tags: trunk
except: log.ERR("Command not found:", cmd)# Start web browser#def browser(url):
bin = conf.play.get("url/http","sensible-browser")print urllog.BROWSER(bin) run(bin +" "+ quote(url))# Open help browser, streamtuner2 pages#def help(*args):
run("yelp /usr/share/doc/streamtuner2/help/")
# Called on switching genre/category.# Either fetches new stream data, or displays list from cache.def load(self, category, force=False, y=None):# called to earlyifnot category:print"load(None)"log.ERR("load(None)")returnself.current = category
# get data from cache or downloadif force ornot category inself.streams:
log.PROC("load","update_streams")self.status("Updating streams...")
a =self.help
# first cmdline arg == actionelse:
command = actions[0]if command in dir(self):
cmd =self.__getattribute__(command)else:print"No such command:", command
log.ERR("No such command:", command)return# run
result = cmd(*actions[1:])if result:self.json(result)
<title>Additional features</title></section><sectionid="footer"><p>You can get additional help from the online forum. See <guiseq><gui>Help</gui><gui>Forum</gui></guiseq>.</p><p>This documentation was last updated for available functions in streamtuner2
version 2.1.5, as of April 2015.</p> version 2.1.7, as of April 2015.</p></section></page>