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.


    Wish list for next release

    Pythonista
    40
    139
    152121
    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.
    • mikael
      mikael last edited by

      It is simple to get the different UISscrollView/UITextView keyboard dismiss modes with objc_utils:

      ObjCInstance(textview).keyboardDismissMode = 2 # 0 - normal, 1 - on scroll, 2 - on scroll interactive

      But publishing this as a part of the TextView Python interface would be a very easy way to make this rather convenient functionality available to everyone.

      (Special note to @marcus67)

      marcus67 1 Reply Last reply Reply Quote 2
      • marcus67
        marcus67 @mikael last edited by

        @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?

        mikael 1 Reply Last reply Reply Quote 0
        • Tizzy
          Tizzy @ttobias last edited by

          @ttobias said:

          Hi,
          I don't know if it has already been mentioned somewhere but it would be nice if the app shows that it's running a script via url "api".
          If the app starts up and is not returning from a suspended state it just shows the initial screen and I am not sure if the script is running
          The small indicator with the script name would be nice for the first start up

          This is a wonderful idea. Also would be cool if when you tried to run a script while the other script is running, instead of just a modal dialog with one continue button if there was a button for "stop other script and run this one"

          Or better yet ( I Don't have any idea of the technical feasibility of this) what if you could have multiple scripts running at the same time on entirely different threads with some sort of overhauled UI to make it clear how many and which scripts are running?

          1 Reply Last reply Reply Quote 2
          • mikael
            mikael @marcus67 last edited by

            @marcus67, no, unfortunately I think this is just one more thing in our toolbelt, exact approach to be selected based on the individual use case and UI preferences.

            Just to collect my thoughts, here's the ways we have for dismissing the keyboard on iPhone, until Apple does something about it:

            • Add a custom UI element like a button in the top bar or a gesture somewhere
            • Auxiliary key above the keyboard
            • Using ScrollView/TextView scroll to dismiss option
            1 Reply Last reply Reply Quote 0
            • mikael
              mikael last edited by

              One more thing:

              Could we please remove or have an option to silence the various clicking sounds made by the editor auxiliary keyboard keys?

              Currently they do not respect the system-wide setting, and are really annoying in a quiet environment.

              1 Reply Last reply Reply Quote 4
              • disorientedp
                disorientedp last edited by

                A "busy" option in console.hud_alert for showing that something is loading. This can be seen on other iOS apps frequently.

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

                  @disorientedp You can use console.show_progress() and console.hide_progress() for that.

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

                    @disorientedp The function console.show_activity can take a string argument, which makes it display a HUD alert with a spinner and that string message, in addition to the spinner in the status bar. This has been around since at least Pythonista 1.5 but is not documented anywhere as far as I can tell. @omz

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

                      @dgelessus is right of course, it's called show_activity(), not show_progress(). I wasn't aware that the optional message parameter is undocumented, but that does indeed seem to be the case. Sorry about that.

                      1 Reply Last reply Reply Quote 2
                      • disorientedp
                        disorientedp @omz last edited by

                        @omz thanks.

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

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

                          1 Reply Last reply Reply Quote 4
                          • MartinPacker
                            MartinPacker last edited by

                            @marcus67 I assume there's no XSLT 2.0 transformer available. (Thin on the ground last time I looked.)

                            marcus67 1 Reply Last reply Reply Quote 0
                            • roosterboy
                              roosterboy last edited by

                              I'll second lxml, since without that module it's rather difficult (or it has been in my admittedly somewhat limited experience) to get python-docx and python-xlsx to work and those would be useful to have in Pythonista.

                              1 Reply Last reply Reply Quote 0
                              • marcus67
                                marcus67 @MartinPacker last edited by 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.

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

                                  I am not sure if being able to subclass ui compents is in the wind or will ever be. But I thought of something that may be quite useful, at least in my mind.
                                  The simplest form of my idea is that you could call a ui method that sets a callback function that is called upon creation of any ui component. We could be passed the object type, or worse case check with type.
                                  A little more refined would be able to also set different callbacks for the different types of ui components.

                                  That would offer a lot of flexibility and possibilities. Also, especially when testing would be so easy just to style the objects. I know, you can still just have a make button function anyway. But this just seems so much cleaner.

                                  Not sure the impact this would have on performance or threading issues etc. I assume threading type problems would not be an issue as it would only be called on creation.

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

                                    Phuket2. - see mikael's last post here
                                    https://forum.omz-software.com/topic/2513/getting-the-parent-of-a-dynamically-method-as-a-function/15

                                    The ObjectWrapper approach is very elegant, and effectively allows you to subclass unsubclassable objects without much cruft.

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

                                      @JonB , ok thanks. I have installed it. It's not really apparent to me yet why this is a good idea. I have read the doc. I am a little slow on the uptake.
                                      But in your opinion does my idea make sense or is it full of gotcha's and a bad way to implement the functionality.
                                      The little I can get right now, ProxyTypes will help with the subclassing but the thing I like about what I said is that you can centralise a lot of code for styling/adding dynamic attrs etc. Also when sharing here, is all built in.
                                      I assume that if ProxyTypes is compelling , that @omz could include that.
                                      I assume if that callback function was available, could even further help ProxyTypes, hmmm I think....
                                      Ok. But thanks. I will try somethings I was struggling with before when trying the make wrappers around the ui objects

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

                                        Uh... Speech recognition. Duh. For like, Siri.

                                        disorientedp 1 Reply Last reply Reply Quote 3
                                        • disorientedp
                                          disorientedp @jbap last edited by

                                          @jbap Will you be more specific? I'm not sure I understand.

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

                                            @disorientedp I think he/she means not dIctating code, but a module for recognizing user speech, which would allow him/her to create something like a basic form of Siri.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors