omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. jugisto135
    3. Posts

    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 6
    • Posts 19
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by jugisto135

    • Get a list of all keys in Pythonista's keychain?

      Is there any way to get an overview of all services and accounts for which there are keys stored via Pythonisat?

      posted in Pythonista
      jugisto135
      jugisto135
    • How to save image via photos.save_image()?

      I've tried passing along a URL to an image, which didn't work. I kind if expected that, but do i have to create a temporary image file locally to pass it along? Do I have to use PIL?

      posted in Pythonista
      jugisto135
      jugisto135
    • scene.text() won't show strings

      I ran into a problem with scene.text() when trying to show some strings in a simple scene. Most of the times scene.text() will work as expected, but in some cases the text appears to be empty. In fact, the string seems fine, it will print to console without any problems. What might be the problem?

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: scene.text() won't show strings

      Yes, thanks. That would have been better. But right now I've truncated the dtring to a fixed length and the problem is gone.

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Size of layer image

      Thanks, ccc.

      posted in Pythonista
      jugisto135
      jugisto135
    • Size of layer image

      Is there a way to set the size of a layer's image in the scene module? I have something like this.

      self.layer.image = render_text('foo')[0]
      

      This will stretch the given text out of proportions, depending on the size of the layer. But I have fixed size layers that should have centered texts. How can I achieve this?

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: First Look at Editorial for iPad

      Okay, iPhone is planned. Other than that, I'm intrigued.

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Get a list of all keys in Pythonista's keychain?

      Awesome, thanks!

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Get a list of all keys in Pythonista's keychain?

      Well, I know I will eventually start to dump anything in there. So I guess I'll write some sort of wrapper for the keychain to keep track of what services and accounts I'm storing in there. Might be a security risk, but since you won't get to the keychain's data of Pythonista without having physical access to my device, I won't care about it that much.

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Get a list of all keys in Pythonista's keychain?

      Thanks for the info. Am I worrying too much about possible overload of keys in the keychain? Will the keys be deleted, when Pythonista is uninstalled?

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: How to save image via photos.save_image()?

      Great, thanks.

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: how to change the file extension

      Well, Pythonista's purpose is to be a working editor and environment for Python, so afaik it is not intended to be a fully functional file manager and editor.

      But as it is more than just a file manager or editor, Pythonista does allow for a file manager being written in Python and run in the console. Here's a nice one:

      http://omz-software.com/pythonista/forums/discussion/74/advanced-shell-shellista

      As for creating and writing a file, use Python's built-in open(), like this:

      <code>with open('test.txt', 'wb') as file:
      file.write('This is a test.')
      file.close()</code>

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Turn off line-wrapping

      Thanks, that's even better.

      posted in Pythonista
      jugisto135
      jugisto135
    • Turn off line-wrapping

      I am having a relatively large list of all primes below 10000 in my script. Browsing the script is almost impossible now, I suspect Pythonista's line-wrapping as a possible cause of this. Is there any way to switch off line-wrapping in the editor?

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Variables in functions

      For further information read up on variable scopes and namespaces in the reference or tutorial.

      Simply put, each variable is bound to a certain scope, global or local. Your star is a local variable of and only of the first function. If you want your star variable to be an argument of your second function, declare star globally. So move 'star = 3' to outside of both functions.

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Cannot create private gists

      I can now confirm it's the password length. I have tried another account with a strength of 10 characters. Worked as expected and created a private gist for said account.

      Thanks

      posted in Pythonista
      jugisto135
      jugisto135
    • Cannot create private gists

      Hi,

      I'm having just a little problem with Pythonista's upload to Gist. Although I pass the correct login credentials, any given code is always shared by Pythonista as anonymous.

      Any help or suggestions appreciated.

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Cannot create private gists

      Hi,

      I am still having the issue. I realized that I can create private gists, but only anonymously.

      Here is a link to a private anonymous link I created with Pythonista while my setup was Anonymous=OFF, Private=ON:

      https://gist.github.com/11f986b451bf8dc5a414

      As you can see, it's anonymous and private. Not linked to my account which is krisjugisto on github.

      Is there any string length limitation in Pythonista, I'm asking because my password is >30 characters strong?

      Besides, this is still just a scratch on an otherwise absolutely brilliant app. And 1.3 made it even better. Thanks omz!

      posted in Pythonista
      jugisto135
      jugisto135
    • RE: Cannot create private gists

      Am I the only one having this problem?

      Any advice? Thanks

      posted in Pythonista
      jugisto135
      jugisto135