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.
Python 3.x Progress Update
-
This thread is getting really long so I may just start another about the new template you posted to github. I am coming at this with virtually no knowledge of XCode development so my feedback should be taken in that context. At this point I have simply setup for XCode development on a squeaky clean Mac Mini. I read the Reame on the Github site but it had nothing about how to "install" the template. I spent a few days researching this and learned that it depends on a number of factors. So my feedback for now would be to add some text to the Readme to discuss this. I think the Readme should state the 3 or 4 ways to download the package and install it and why you would pick each of the methods. Something along these lines ...
-
Checkout the distribution using XCode source code control and recommend a destination location and then how to do a build using the stock XCode dev environment (not the command line) - then run in the simulator and then deploy to your device.
-
Download the distribution as a ZIP file, unpack it and then move the pieces into their "correct" locations. This one would probably best be done using the command line only.
-
Install the distribution using CocoPod? I have no experience with this yet and don't know what is involved. However - this seems to be one of the most modern methods for keeping the dependencies between all the parts of your App under control and easy to maintain.
-
Other? Maybe document the tools you are specifically using in your development environment as it might be illuminating.
New users of the template may also be wondering what the supplied process does anywhere the result end up. Does it produce universal binaries or only ones targeting IOS. Mac OSX support? etc. I am just looking at this as if this is a SDK offering and that Pythonista is the demo app for this SDK. You have mentioned that at least one developer has taken the framework out of your distribution and put it into another project so this seems appropriate.
-
-
On the donation/financial contribution topic. I can understand that @omz feels uncomfortable taking donations, this brings notions of charity. But me and many other are more than willing to contribute financially to the apps, to show appreciation for this wonderful tool and to help with/speed up future development. If there would be an anti-sale day for the new Python 3 version with a higher price (5x?) I would buy it that day.
-
@Oscar me too, same day!!
-
@omz Even though I realize this has been discussed as likely very problematic I really do think the ultimate solution is to sunset Pythonista 2.7-only version, and bake a python 2.7 mode into Pythonista 3 even if it requires a toggle and an app restart because as you mention yourself there will be people who are like "I got the wrong version, 1 star!!!!" Or maybe just a superficial 2.7 compatibility mode where it runs 2to3 tools , and some module compatibility tool I've read about in a new directory.
-
@omz Thanks for the new features in Pythonista 2. I'm still using that as my primary version.
-
regarding StringIO and cStringIO. It's my understanding that in Python3 there is no
cStringIO
. It's also my understanding that in Python2cStringIO.StringIO
was faster thanStringIO
. Since in Pythonista3cStringIO
gives anImportError
, I'm wondering whether the fastercStringIO
is gone or ifStringIO
is now that faster version by default with the simpler name.I'm using this as
file=cStringIO.StringIO(urllib2.urlopen(url).read())
as part of a circle mask view from url function made with (I believe) the help of @jonb and/or possibly @ccc. (They're both so damn helpful) -
I like python 3.5 but my heart is for 2.7 <3
-
@Tizzy There's just one
StringIO
implementation in Python 3, it's basicallycStringIO
with a different name, and it's been moved to theio
module.If you just want to use
StringIO
on Python 3, usefrom io import StringIO
. If you want compatibility with both versions, you could use something like:import sys if sys.version_info[0] >= 3: from io import StringIO else: from cStringIO import StringIO
You could also use the
six
compatibility layer:from six import StringIO # works for Python 2+3
-
great thanks @omz. also Thanks for the line numbers!!!
What is "show tab bar"???? Can't figure out what changes when toggling this in settings...
-
@Tizzy said:
What is "show tab bar"???? Can't figure out what changes when toggling this in settings...
It changes how multiple editor tabs are shown. With "show tab bar" on, you'll get an "add tab" button in the top-right corner, and you can select tabs like on the iPad. Without it, the button in the top-right corner shows an overview of all tabs, but the tab bar is not visible normally.
It doesn't really make a difference if you only have one tab open, of course.
-
@omz WOW. I feel stupid. I've been using it in tabbed mode for so long I forgot there was anything else.
-
@omz Applied kindly invite me.
-
I mentioned this before. I am using scrollview in UI editor. After leaving the subview sometimes the changes going lost. I thought this was fixed in the meantime, but the problem is still there.
It would be nice to get an feedback on this. -
@omz said:
Have yet to get the invite for the Pythonista 3 beta. Is the form not working? Or is Ole on a well deserved break somewhere? ;)
-
Ole take a break?!? I doubt that ever happens! 😎
-
@omz so I was just taking a little stroll through my iPad's filesystem, and I noticed in the Pythonista Python library that there is a file template for something called "SpriteKit". It's module is
sk
. Hopefully I didn't just spoil anything cool for the next update, but is this an old, deprecated feature? -
@AtomBombed It's a leftover from a discontinued feature (was part of a beta months ago).
-
@zense I don't check every day if new people have signed up, and right now, iTunes Connect is down, so I can't send invites (or upload betas) at the moment.
-
@omz, Hi, thx for the invite. Playing around with the new interface and trying out the example scripts on my iPod Touch 5 running iOS 8.4, I've experienced the following issues (really hope none of them were mentioned, if they were - excuse me :) ):
-
The font size selector in the general app settings is quite unresponsive - I press like 10 times in a short period of time and it slowly increases/decreases. Also the style of the selector is out of place - in the UI designer it is a draggable thing, but there it is an old +/- sign.
-
Sometimes (I don't really know what's causing this, the first time I got it was when I first loaded the demo script game_menu and switched to the Match3 script through the navigation sidebar) the file selector randomly turns completely black for a certain amount of time or until you close the sidebar.
-
The Camera Scanner crashes the app when I load in a pic, it might be because of the weakness of my iPod :).
-
The keyboard "tick" sound is disabled in my system and the keyboard doesn't "tick", however the top row of buttons does (e.g. when adjusting the typing position), that's kinda annoying.
-
All the plot scripts, even the simplest one, crash the app. I think the reason here is the same as that pic scanner script, but having MPL on an iPod would be cool, take a look to see what can be done here.
-
The keyboard dismissing button is gone, so pretty much I haven't been able to dismiss it except for just running the script or such. (It might just be my stupidity)
-
The undo button is very inconveniently placed, every time to undo you gotta hold the colon. I liked it more when you had a second button page, but there has to be a reason you did it this way, right?)
-
I haven't found a way to input a hex string to the UI color picker, there is just a big pallete and one slider (also I wish the scroll speed would adjust based on where you drag, you know, like iOS sliders in general). Is there one? Because if not, this is desperately needed.
-
The widgets in the UI designer are a little too easy to drag and resize, for example if it is positioned like 3 pixels off of where it would automatically stick, when pressing the widget for the bubble popup, it just jumps to the fixed place, which is not so handy. Also it would be nice to zoom out in the designer.
-
The new copying mechanic doesn't keep size. On one hand it is good, e.g. for a color copy, but when creating tons of similar sized buttons, the entire copying of the widget would be much more useful.
-
The main UI background & tint colors are nowhere to be seen. However, again, maybe I'm just blind (then excuse me :p)
Wow, I've probably destroyed this message page. Accept apology because I'm sure most of the issues described above are my fault :) Peace!
-
-
@Leva7 To dismiss the keyboard you can swipe left to open the file list. Even on my iPad I use that instead of the iOS "hide keyboard" button - I usually have a Bluetooth keyboard connected, and in that case the button doesn't unfocus the current text field, but it disables the onscreen keyboard so you have more screen space when using the external keyboard. This is very annoying when I'm not using my external keyboard, because the only way to bring back the onscreen keyboard is to press the "eject" key on the external keyboard (or by turning off Bluetooth to forcibly disconnect the external keyboard).