omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Croc

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Best 1
    • Controversial 0
    • Groups 0

    Croc

    @Croc

    1
    Reputation
    970
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Croc Unfollow Follow

    Best posts made by Croc

    • RE: Siri SDK!

      I hope this means the SFSpeechRecognition module will be available to use in Pythonista in iOS 10.

      posted in Pythonista
      Croc
      Croc

    Latest posts made by Croc

    • RE: Siri SDK!

      I hope this means the SFSpeechRecognition module will be available to use in Pythonista in iOS 10.

      posted in Pythonista
      Croc
      Croc
    • RE: Strange error with ui.webview

      @brumm Thanks that worked perfectly!

      posted in Pythonista
      Croc
      Croc
    • RE: Strange error with ui.webview

      @brumm I edited my code to match what you added and it works somewhat, but for some reason the webview is doing this...

      after running script

      And it should look like this...

      what it should look like

      posted in Pythonista
      Croc
      Croc
    • RE: Strange error with ui.webview

      @omz Thank you for the quick help. I figured it was some dumb mistake. :)

      posted in Pythonista
      Croc
      Croc
    • Strange error with ui.webview

      I'm making a simple application in Pythonista to display webpages, listed in a text file, inside of a webview. I have looked over the documentation and tried to Google this error, but I can't seem to find anything.

      Here's my code:

      # coding: utf-8
      
      import ui
      import urllib2
      import re
      
      v = ui.load_view()
      v.present('sheet')
      webview = ui.WebView
      
      def main():
      	fx = open('sites.txt', 'r')
      	lines = fx.readlines()
      	fx.close()
      	link1 = re.split('/\n', lines[0])
      	link1.pop()
      	link2 = re.split('/\n', lines[1])
      	link2.pop()
      	link3 = re.split('/\n', lines[2])
      	link3.pop()
      	webview.load_url(link1)
      	webview.present()
      	
      main()
      
      

      Here is a version of the error I get. Even when I supply a argument in the webview.load_url() method, it says it needs a URL instead of a string. So what I need to know is how to convert a list with one element into something that webview.load_url() will understand.

      Error

      posted in Pythonista
      Croc
      Croc
    • RE: [Share Code] Update iOS contact images with Twitter profile pictures

      This looks awesome for your first script! My first script is lame compared to this one lol. All it does is detect if you have a link to a tweet in your clipboard and then it likes it using your account.

      posted in Pythonista
      Croc
      Croc
    • Possible to work with Twitter and Instagram API from within Pythonista???

      I would like to code a fully functional Twitter retweet bot or something similar from within Pythonista, but I want to know if it is even possible with Apple's sandboxing restrictions?

      posted in Pythonista
      Croc
      Croc