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.


    Can I still build editor tools with sidebars or popovers?

    Pythonista
    4
    4
    2918
    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.
    • polymerchm
      polymerchm last edited by polymerchm

      Trying to create a regex find/replace tool for the editor Looked at editmenu for staters, but when execute, it errors with

      self.present('sidebar')
      

      ValueError: View is already being presented or animation is in progress

      It this no longer possible in ios 10 pythonista?

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

        Yes, sidebar was removed in 2.0/3.0.
        Popover still works, but sidebar and menubar were removed.

        With objc, we do now have a lot more flexibility, and can basically hack the interface in new ways.

        i created a simple replacement for sidebar:
        https://forum.omz-software.com/topic/3543/share-in-work-side-bar-replacement

        Also, my matplotlib backend has a "shield free" floating window class, which can live in the editor, console, or root.
        https://forum.omz-software.com/topic/3379/share-interactive-matplotlib-backend

        Or, you can add buttons to the pythonista menu directly:
        https://github.com/jsbain/objc_hacks/blob/master/apphack.py

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

          @JonB , I like the add button to menu script. I don't remember ever seeing this one.

          With beta 301010, it works when run under 2.7, but not as 3.5. The
          tb=get_toolbar(main_view) function is returning None. Would be great to have a update if it's a simple fix

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

            Or You can use panel in "sidebar" mode. See the discussions here.
            https://forum.omz-software.com/topic/2692/ui-views-can-still-be-presented-in-sidebar-mode-in-pythonista-2-0-sort-of
            https://forum.omz-software.com/topic/3538/a-request-for-jonb

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