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.


    Child parent assigment

    Pythonista
    trash can inspector views ui button
    3
    3
    1374
    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.
    • Hasthohaha
      Hasthohaha last edited by

      I spent a lot of time since my last post, trying to figure out what happened. I’m still stuck but have figured out a few things.

      To review: I was working on my 2nd Pythonista UI and had had a button that was being covered and hidden by the View.

      After much screwing around, I managed to cover all the buttons with the view. The happed because my thumb hit the trash can button, while I was inspecting the View, so I made a new View, which proceeded to cover all the buttons.

      So here are some questions:

      Is there a parent child relationship between views and buttons?

      If so, is there a was to change the relationship?

      I tried the code:

      view.send_to_back()

      It made the view and its border completely disappear when I ran the program. Not helpful...

      I’m going to delete and start over, but it seems there should be ways to handle this.

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

        Someone, maybe @mikael or @polymerchm used to have a pyui editor, which let you change the heirarchical relationship of UI.Views.

        Pyui's are just json files, so you can also just edit them directly.

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

          Pyui's are just json files, so you can also just [change file extension from .pyui -> .json] edit them directly [and then change the extension from .json -> .pyui].

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