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")
예제 #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')
예제 #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')
예제 #4
0
파일: browser.py 프로젝트: Abdillah/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")