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.
Bug list for beta release 201001
-
Sometimes changes in UI editor eg. in a scrollview are not saved and get lost.
-
@dgelessus , I agree objc_util needs an
__all__
However, to exclude the imported modules, you don't necessarily need to enumerate; instead you can useinspect
:{name for name in dir(objc_util) if not name.startswith("_") and not inspect.ismodule(getattr(objc_util, name)) }
-
Setting
__all__
inobjc_util
is a good idea, thanks @dgelessus. -
Looking at the icon picker code in the UI editor now, I kinda wonder why anything works at all... :/
-
@omz Sometimes the things work by accident ;-)
-
@omz or anyone else, does anyone know to get files from your camera roll into the files area of the icon picker. This has been an issue for a while now, I just keep forgetting about it. I vaguely remember how to do it in 1.5, but I am lost with this one. It's probably something very simple right under my nose, I just can't see it
-
@Phuket2 In the UI editor, this isn't possible. For the general asset picker (
[+]
button in code editor), it should show image files that are in the same directory as the script you're editing (or a subdirectory). You can import an image from your camera roll as a file using the "New file" dialog. There's an "Imort Photo..." entry at the bottom there. -
Is this new in this version?
Cannot place the caret at the end of the text in TextView without getting a 'Range out of bounds' error.
No error if I subtract one, but then the caret is before the final character.
Also no error if I select a range - e.g. selected_range = (0, l) in the sample below.
Simple test:
tv = ui.TextView() tv.text = '123456789' tv.present() tv.begin_editing() l = len(tv.text) # l is 9 tv.selected_range = (l, l)
-
@mikael Interesting, I don't think it's new (at least I haven't made changes related to this recently). Temporary workaround:
from objc_util import * # ... on_main_thread(ObjCInstance(tv).setSelectedRange_)((l, l))
-
@omz: Thanks!
With the additional note that in ObjC, it is looks to be (start, length), not (start, end).
So, in this case (l, 0), or more generally (start, end - start).
-
@mikael Ah, you're right, forgot about that.
-
I can reliably crash my installation of Pythonista by:
- Highlighting some well-known function name
- Selecting Help... From the pop-up
- "Not found, tap for full text search" is shown, although there should be quick help available
- Clicking on the "full search" crashes Pythonista
Maybe related to the new compressed documentation?
-
The editable property for textview set in UI Editor doesn't seam to work. It doesn't matter, it is "editable" in any case.
-
@wnMark Thanks, will be fixed in the next build. Temporary workaround: Enter
{'editable': False}
in the "Custom Attributes" field. -
@omz thank you for this hint!
Overall I am very happy with this beta. I can do much more then testing and discovering nearly every day new features.
It loolks like the problem is solved (in 201001), if I save a scrollview in UI editor. Sometimes the changes gone lost after I tryed to save via "x" sign in upper left corner.
-
@omz Thanks a lot for fixing the icon picker! :-)
-
@dglsseus
objc_util
has an__all__
in the latest 2.7 beta. -
Indeed, thanks @omz.
-
@omz
Thank you for fixing the textview edit property in Beta 201004