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")
Ejemplo n.º 2
0
 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')
Ejemplo n.º 3
0
 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')
Ejemplo n.º 4
0
 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")