@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!
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.
Posts made by marcus67
-
RE: Xcode Template for Pythonista
-
Retrieving the iOS document directory
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! -
Full Control over argv in shortcuts?
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! -
RE: Wish list for next release
@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.
-
RE: Wish list for next release
I would throw in module
lxml
which would give us enhanced XML support including XSLT 1.0 transformations. -
RE: Spacing of ButtonItem's
@omz: That's what the title bar looks like now! :-)
-
RE: Spacing of ButtonItem's
@omz Thanks a lot for your help! The latest change did it for me.
-
RE: [Share Code] gitsynchista now has pyzipista support
@mikael pyzipista should be optional. If it still does not work after upgrading easywebdav I will have to look into this.
-
RE: [Share Code] gitsynchista now has pyzipista support
@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.
-
RE: [Share Code] gitsynchista now has pyzipista support
@mikael And it has just been ported to Pythonista 3.
-
RE: Spacing of ButtonItem's
@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!
-
RE: Wish list for next release
@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?
-
RE: Git or Gist workflow for Pythonista
@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.
-
RE: Bug list for beta release 201001
@omz Thanks a lot for fixing the icon picker! :-)
-
[Share Code] gitsynchista now has pyzipista support
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.
-
RE: Wish list for next release
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:
Would it possible to sort the attributes by name before streaming them to file? Thanks!
-
RE: Bug list for beta release 201001
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.
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.
-
RE: Bug list for beta release 201001
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 :-(