예제 #1
0
def open_email(email):
    if platform == "macosx":
        subprocess.Popen(['open', "mailto:" + email])
    elif platform == 'win':
        os.startfile("mailto:" + email)
    elif platform == "linux":
        subprocess.Popen(['xdg-open', "mailto:" + email])
    elif platform == "android":
        android.open_url("mailto:" + email)
예제 #2
0
파일: ui.py 프로젝트: Davideddu/karaokivy
def open_email(email):
    if platform == "macosx":
        subprocess.Popen(['open', "mailto:" + email])
    elif platform == 'win':
        os.startfile("mailto:" + email)
    elif platform == "linux":
        subprocess.Popen(['xdg-open', "mailto:" + email])
    elif platform == "android":
        android.open_url("mailto:" + email)
예제 #3
0
def open_url(url):
    if platform == "macosx":
        subprocess.Popen(['open', url])
    elif platform == 'win':
        os.startfile(url)
    elif platform == "linux":
        subprocess.Popen(['xdg-open', url])
    elif platform == "android":
        android.open_url(url)
예제 #4
0
파일: ui.py 프로젝트: Davideddu/karaokivy
def open_url(url):
    if platform == "macosx":
        subprocess.Popen(['open', url])
    elif platform == 'win':
        os.startfile(url)
    elif platform == "linux":
        subprocess.Popen(['xdg-open', url])
    elif platform == "android":
        android.open_url(url)
 def show_3dprinter_survey(self, *args):
     url = "http://surveys.peerproduction.net/2012/05/manufacturing-in-motion/"
     if platform == "android":
         import android
         android.open_url(url)
     elif platform == "linux":
         subprocess.Popen(["xdg-open", url])
     elif platform == "win":
         os.startfile(url)
     elif platform == "mac":
         subprocess.Popen(["open", url])
예제 #6
0
 def donate(self):
     # Stisk tlačítka podpořit vývojáře
     # Na Androidu otevře webový prohlížeč s URL
     # Na jiných platformách vytiskne odkaz do konzole
     if self.root.Cfg[0] == "cs":
         lc = "CZ"
         cur = "CZK"
     else:
         lc = "US"
         cur = "USD"
     if self.root.onAndroid():
         android.open_url("https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6XKAJN3DGBGUW&lc={0}&item_name=Mobile%20TetriNET&currency_code={1}&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted".format(lc, cur))
     print "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6XKAJN3DGBGUW&lc={0}&item_name=Mobile%20TetriNET&currency_code={1}&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted".format(lc, cur)
예제 #7
0
 def donate(self):
     # Stisk tlačítka podpořit vývojáře
     # Na Androidu otevře webový prohlížeč s URL
     # Na jiných platformách vytiskne odkaz do konzole
     if self.root.Cfg[0] == "cs":
         lc = "CZ"
         cur = "CZK"
     else:
         lc = "US"
         cur = "USD"
     if self.root.onAndroid():
         android.open_url(
             "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6XKAJN3DGBGUW&lc={0}&item_name=Mobile%20TetriNET&currency_code={1}&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted"
             .format(lc, cur))
     print "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6XKAJN3DGBGUW&lc={0}&item_name=Mobile%20TetriNET&currency_code={1}&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted".format(
         lc, cur)
예제 #8
0
파일: main.py 프로젝트: hallab/sonosmix
 def view(self, url):
     from android import open_url
     open_url(url)