def loading(self, web_view, web_frame, web_resource, request, response): url = request.get_uri() if url.startswith( "http://lispeak.bmandesigns.com/functions.php?f=download&t=id&s=" ): pid = url.replace( "http://lispeak.bmandesigns.com/functions.php?f=download&t=id&s=", "") lispeak.downloadPackage(pid, "id")
def install(self,widget): p = subprocess.Popen("zenity --entry --text='Enter the Plugin Name' --title='Plugin Installer'", shell=True, stdout=subprocess.PIPE).communicate()[0].replace('\n','') print "Installing: "+p lispeak.downloadPackage(p) lispeak.dialogInfo("Plugin Installed",'LiSpeak')
def loading(self,web_view,web_frame,web_resource,request,response): url = request.get_uri() if url.startswith("http://lispeak.bmandesigns.com/functions.php?f=download&t=id&s="): pid = url.replace("http://lispeak.bmandesigns.com/functions.php?f=download&t=id&s=","") lispeak.downloadPackage(pid,"id")