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.


    UI Priority/Order/"Send to Back/Front"

    Pythonista
    2
    5
    3530
    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.
    • lachlantula
      lachlantula last edited by

      Hi everyone, simple question today (hopefully).

      Is there a way to change the priority of an element in a UI (ie. sending something to the front or back so they don't overlap in a way that isn't really wanted)?

      Thanks:)

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

        Bring_to_front and send_to_back methods of UI.view perhaps?

        1 Reply Last reply Reply Quote 1
        • lachlantula
          lachlantula last edited by lachlantula

          @cvp Unfortunately those methods are for the actual view window, so if you have multiple views open it can adjust which one is at the front and back. :\

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

            I currently use it for sub-elements of an ui.view, like buttons, ImageViews, ...,
            like button_name.Bring_to_front() etc.., thus with multiple objects views.

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

              Aha - you're right! I moved my code line (the send_to_back) into after the subviews are created rather than when all the attributes of the element are setup and it works wonderfully. Thanks!

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