• DavinE

    @7upser said:

    @cvp It wasn't my Thread 😛

    But you are right Phone calls and WhatsApp are different things.
    Maybe there is a url scheme for whats app, or a action for Shortcuts.

    But back to what i'm interested in (call shortcut and return to pythonista)
    This could work:

    import ui
    import webbrowser
    
    class cUIView(ui.View):
      def __init__(self, *args, **kwargs):
          self.width, self.height = 200, 200
          self.background_color = 'silver'
          
          self.vBtn = ui.Button(title = 'test', name = 'btntest')
          self.vBtn.frame = (50, 50, 100, 100)
          self.vBtn.background_color = 'white'
          self.vBtn.action = self.btnAction
          self.add_subview(self.vBtn)
          
      def btnAction(self, vSender):
          url = 'shortcuts://x-callback-url/run-shortcut?name=testBluetoothOff&x-success=pythonista3://'
          webbrowser.open(url)
    
    vView = cUIView()
    vView.present('sheet')
    

    Thats nice xD
    Thanks

    posted in Pythonista read more
  • DavinE

    @cvp said:

    @7upser said:

    It wasn't my Thread

    I'm very sorry, sincerely

    that was mine xD

    posted in Pythonista read more
  • DavinE

    @cvp said:

    See here

    Is it possible go back to Pythonista ?

    posted in Pythonista read more
  • DavinE

    okay Thanks @ccc
    i will take a look at VS Code

    posted in Pythonista read more
  • DavinE

    @cvp said:

    @DavinE I don't know for Pythonista, but since iOS 11, desactivating airplane does not désactivante wifi nor Bluetooth. Thus if you launch a shortcut from Pythonista, you could thus stop your telephone activity

    hehe ^^
    okay nice Idea perfect!
    Thanks again @cvp

    posted in Pythonista read more
  • DavinE

    @cvp
    I need WIFI xD

    can Pythonista set the airplane mode ?

    posted in Pythonista read more
  • DavinE

    I used my whole time Brackets from Adobe...
    but Adobe stops supporting this app...

    What Program did you guys use... i have no idea...
    I'm using MacOS

    thanks for your reply ;)

    posted in Pythonista read more
  • DavinE

    Hey Guys,

    Is Pythonista able to block the call function ?
    My problem is when i'm in my app and i get a call (normal or WhatsApp) it hang up my App and i need to begin at Start.

    posted in Pythonista read more
  • DavinE

    @cvp said:

    @DavinE yes sir, but it may begin at first folder where you are authorized. try first without folder, only a file name to check after upload where it has been stored

    @cvp really thanks a lot for your help!! and for your Time to help me out ;) Thanks!!

    i played now a while and it works like i will create folders upload files etc. great!!

    beautiful evening @cvp xD

    posted in Pythonista read more
  • DavinE

    @cvp said:

    Upload

    ftp = FTP(ip) #connect
    ftp.encoding = 'utf-8'
    ftp.login(user,pwd)
    local_file = open(path,'rb')
    ftp.storbinary('STOR '+server_file, local_file, blocksize=32768)
    local_file.close()
    ftp.quit()
    

    server_file
    is this this the storage Path ?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!