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.


    How to build a Sharehseet UI which runs well on iPad and iPhone

    Pythonista
    2
    4
    1279
    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.
    • halloleooo
      halloleooo last edited by

      I have my well-working Image Joiner share extension developed with a *.pyui file. This extension works well on my iPad I use for developing the UI:

      However when running on my iPhone it looks like this:

      Not too bad, but if I want to have a design which shows the percent" SegementControl next to its "Border Width" Label on iPad and iPhone_, how can I design the .pyui file for it?

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

        @halloleooo you could, before presenting the view, recompute the frames of the relative objects (labels, segments) in function of the dimensions of the device (ui.get_screen_size())

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

          @cvp Thanks. Makes sense. I was hoping there is a way via the UI builder, but of course, I can adjust things later in code.

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

            @halloleooo said:

            there is a way via the UI builder

            I don't think so but I never use the designer, thus perhaps it is better to have another advice

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