omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Pythonista 1.6 Beta

    Pythonista
    55
    301
    444722
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Webmaster4o
      Webmaster4o last edited by

      Oh! So there is a bug, but not the one we thought :P

      1 Reply Last reply Reply Quote 0
      • Tizzy
        Tizzy last edited by

        What's the word on iOS 9 beta... are there any known 1.6 issues with it? Apple beta software program just sent out notifications and I want to jump in.

        Update:

        Just went for it and there appears to be a problem with the speech module - specifically speech.get_languages() now returns an empty array rather than the lost of languages and corresponding codes.

        https://flic.kr/p/vwhLpC

        PS anybody have any scripts to use as action extensions to get the direct URL of a Flickr photo?

        alt text

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          The current Beta expires in 21 hours...

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            just click the download button, choose the size, then copy the url

            1 Reply Last reply Reply Quote 0
            • Webmaster4o
              Webmaster4o last edited by

              In the newest beta, pythonista becomes completely unresponsive if dialogs.share_image is called while the keyboard is showing. In my UI, the user puts text into a box, then presses a button that calls dialogs.share_image. If the user fails to close the keyboard before pressing the button, pythonista doesn't crash, it just freezes. If the keyboard is hidden when the button is pressed, everything works perfectly.

              #Perfect:
              2

              #Broken:
              1
              When the keyboard is open, the dialog fails to show, and the app must be quit from multitasking as it is completely unresponsive.

              1 Reply Last reply Reply Quote 0
              • Webmaster4o
                Webmaster4o last edited by

                For now, is there a way to close the keyboard from a script?

                1 Reply Last reply Reply Quote 0
                • ccc
                  ccc last edited by

                  Calling .end_editing() on your text field should do the trick.

                  http://omz-forums.appspot.com/pythonista/post/5050025600090112

                  1 Reply Last reply Reply Quote 0
                  • Webmaster4o
                    Webmaster4o last edited by

                    Yep. Thanks.

                    1 Reply Last reply Reply Quote 0
                    • Webmaster4o
                      Webmaster4o last edited by

                      Possible bug: scripts run from the app extension can't see modules in site-packages. If I run my script, it works, but if I run it from the app extension:

                      Is this a bug or am I missing something? Of course, most app extensions that use appex don't work anyway in this beta, because of from _appex import watch :)

                      1 Reply Last reply Reply Quote 0
                      • JonB
                        JonB last edited by

                        the appex has its own sandbox... the main app can see the appex sandbox, but not vice versa. I think this is a security feature. bottom line, you have to reinstall all of the modules you need into extension/site-packages folders.

                        if you want to do this using stash, you can find the Extensions folder by opening a file, then using editor.get_path. otherwise just copy the folder using the file manager.

                        1 Reply Last reply Reply Quote 0
                        • Webmaster4o
                          Webmaster4o last edited by

                          My file manager doesn't seem to have a way to move a folder into extensions. Also, pythonista crashes if I try to create a file in a sub folder of extensions.

                          1 Reply Last reply Reply Quote 0
                          • Webmaster4o
                            Webmaster4o last edited by

                            Ok, this worked for copying the folder, I got path like you reccommended, @JonB

                            1 Reply Last reply Reply Quote 0
                            • JonB
                              JonB last edited by

                              As a workaround for the import appex bug:

                              import _appex
                              _appex.watch = None
                              import appex
                              
                              1 Reply Last reply Reply Quote 0
                              • Webmaster4o
                                Webmaster4o last edited by

                                Oh, wow! Thanks!

                                1 Reply Last reply Reply Quote 0
                                • Tizzy
                                  Tizzy last edited by

                                  Build 160025 bug report.

                                  I have a folder structure /AAAdriver/ inside of which I have DriverInfo.py and TripDataA.py.

                                  previously, from within DriverInfo.py,

                                  "import TripDataA"
                                  

                                  worked just fine. With the latest beta, I'm getting "ImportError: No module named TripDataA"

                                  1 Reply Last reply Reply Quote 0
                                  • dgelessus
                                    dgelessus last edited by dgelessus

                                    From someone who indents with spaces - there are a few things that don't work as well with spaces indentation as with tabs:

                                    • Backspace on a space indent only deletes a single space, as opposed to {indentwidth} spaces like in 1.5
                                    • The "indent" option in the selection popup menu always indents with tabs no matter what
                                    • The "dedent" option always dedents by only a single space
                                    • The width of a tab character in the editor doesn't match the width of {indentwidth} spaces. Or rather it only matches if the default font settings are used.

                                    Slightly related, it is still not possible to indent in the console using an external keyboard's tab key.

                                    It would also be useful if there was a way to set indent mode for individual files. Not necessarily in a permanent way. For example most C source files assume that tabs are 8 chars wide, and some things look very "unaligned" otherwise.

                                    1 Reply Last reply Reply Quote 0
                                    • georg.viehoever
                                      georg.viehoever last edited by

                                      I find the mechanism for opening multiple existing files a bit confusing: In editor, select [+. Then open file selection (hamburger menu), then select file. I would like to see a more straight forward way to do this from file selection directly, for instance hold file name for a longer time, show context menu allowing to "open in new tab" (similar to link in safari).
                                      Georg

                                      1 Reply Last reply Reply Quote 0
                                      • omz
                                        omz last edited by

                                        @georg-viehoever You can swipe left on a file to get an "Open in new tab" option.

                                        1 Reply Last reply Reply Quote 0
                                        • georg.viehoever
                                          georg.viehoever last edited by

                                          @omz that was quick :) Frankly, I always associated left swipe with delete (as in the mail app), not with open... Maybe "long hold" is more intuitive, and could also be used for other advanced actions such as rename etc..

                                          Another wish: Copy and Paste on tracebacks. Would also be useful for some people in this forum that post long programs for correction...

                                          Georg

                                          1 Reply Last reply Reply Quote 0
                                          • Webmaster4o
                                            Webmaster4o last edited by

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors