• marcus67

    @omz Getting back to the question of @polymerchm : Is it possible to run python3 in Xcode? Using a she-bang line like "#! python3" does not work. sys.version still returns "2.7.5 (default, Feb 15 2016, 15:15:36)". Thanks!

    posted in Pythonista read more
  • marcus67

    After a long pause I finally started to work on my Pythonista app Rechtschreibung (see https://github.com/marcus67/rechtschreibung) again. I would like to publish it in the AppStore. As a first step I used the Xcode template to run the Python code in the emulator. I only worked partially. As I found out all the errors were due to the fact that I try to write files located in the bundle directory structure of my app (which is a big no-no in iOS). Instead I have to use the so-called "DocumentDirectory" which is provided by some library functions in Objective C (see e.g. https://stackoverflow.com/questions/4129576/writing-a-string-to-a-text-file-using-xcode-for-iphone-dev). The question is for me how to access these library functions in Pythonista. I would guess that objc_util might help, but none of the identifiers mentioned in the stackoverflow example seem to correspond to Objective C classes. Does anybody have an idea as to how to do this? Thanks a lot!

    posted in Pythonista read more
  • marcus67

    Hi there!
    I've not been working with Pythonsta for over a year now (shame on me!) and coming back noticed that there seems to be a change in the way argv arguments are passed to shortcut scripts. Some of my shortcuts do not work anymore because the path of the current editor script from which I call the shortcut is added as argument. Is there a way to suppress this behaviour (which is very useful in other contexts, I have to admit)? For some of my shortcuts I need to have full controll over the arguments. Thanks!

    posted in Pythonista read more
  • marcus67

    @MartinPacker I haven't found anything. XSLT 2.0 is hard to come by, even outside Python. There's only a small number of implementations.

    posted in Pythonista read more
  • marcus67

    I would throw in module lxmlwhich would give us enhanced XML support including XSLT 1.0 transformations.

    posted in Pythonista read more
  • marcus67

    @omz: That's what the title bar looks like now! :-)

    corrected title bar

    posted in Pythonista read more
  • marcus67

    @omz Thanks a lot for your help! The latest change did it for me.

    posted in Pythonista read more
  • marcus67

    @mikael pyzipista should be optional. If it still does not work after upgrading easywebdav I will have to look into this.

    posted in Pythonista read more
  • marcus67

    @athros Sorry, my fault. You will need to get the latest version of easywebdav (https://github.com/marcus67/easywebdav), too, and install it into your site-packages. Better restart Pythonista to make the changes visible.

    posted in Pythonista read more
  • marcus67

    @mikael And it has just been ported to Pythonista 3.

    posted in Pythonista read more
  • marcus67

    @JonB Sorry for addressing you directly, but you seem to have an abundance of experience in this area. Do you have any idea what could be wrong in my implementation of @omz's ObjC approach (see my gist link below)? Thanks a lot!

    posted in Pythonista read more
  • marcus67

    @mikael Regarding the keyboard dismiss mode: Do you think this would really help on the iPhone in all the cases? I'm not familiar with these modes but is there really a mode that would hide the keyboard when the cursor is located in a simple text field and the view is not scrollbale?

    posted in Pythonista read more
  • marcus67

    @mikael There's a tutorial now. Enjoy!

    posted in Pythonista read more
  • marcus67

    @ccc Regarding your wish for a step-by-step documentation of a github lifecycle: I've started a tutorial for my tool gitsynchista which integrates with Working Copy. See here.

    posted in Pythonista read more
  • marcus67

    @omz Thanks a lot for fixing the icon picker! :-)

    posted in Pythonista read more
  • marcus67

    My little tool gitsynchista now offers support for my other little tool pyzipista: For each configured repository the app checks if the self-extracting archive is up-to-date. If not, the pyzipista button at the bottom will show a red border. The user can update the archive by simply pressing the button.

    screenshot

    posted in Pythonista read more
  • marcus67

    When opening (and not neccessarily modifying) pyui files the order in which the JSON is written out to file does not seem to be preserved. So, I do get changes in GIT commits that are not real changes:

    diff

    Would it possible to sort the attributes by name before streaming them to file? Thanks!

    posted in Pythonista read more
  • marcus67

    Since version 2.0 there is a little bug in the handling of the clipboard filled with whole lines. To reproduce: Look for a line of code with content starting in the very first column. Highlight the code from the left of the first character to the the very left of the next line.

    highlighting

    Go to somewhere else. Insert the clipboard left from the first character of that line. Result: The line will be inserted but the terminating newline character (which should be in the clipboard) is NOT inserted. So, such an insert has always to be followed by pressing RETURN.

    posted in Pythonista read more
  • marcus67

    There (still?) seems to be an issue with the icon support in the UI editor. Quickest way to reproduce:

    • create pyui file,
    • add a button,
    • pick an image for the button -> icon selector works :-)
    • add a custom view
    • enter the custom view
    • add a button there
    • pick an image for the button -> empty icon list :-(

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!