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.


    Add a button in the title bar of Pythonista?

    Pythonista
    3
    7
    3571
    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.
    • cvp
      cvp last edited by

      Is it possible to add a button (icon,action) in the title bar of Pythonista, where we find the script name, run button, wrench button etc...

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

        see
        https://github.com/jsbain/objc_hacks/blob/master/apphack.py

        This example adds a "run in current workspace" button to the toolbar, but also exposes a general fuction for adding ui.Buttons to the toolbar.

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

          I've tried the script but tb is None...

          Replaced by ...== b'OMTabViewToolbar' ==> ok

          One more time (not the last one, I hope) Thanks a lot...

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

            @cvp You can always post a pull request of your improvements.

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

              @ccc I suppose it is not really a bug, it was ok in Python 2?

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

                turns out i had fixed that and other issues a long time ago, but never pushed. fixed now.

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

                  Thanks because execfile was also deprecated...

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