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.Rect - can't add dynamic attrs

    Pythonista
    ui.rect dynamic attr
    1
    1
    1489
    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.
    • Phuket2
      Phuket2 last edited by

      @omz, sorry. This is probably a very stupid question/assertion. But I don't understand why I can't add dynamic properties/attrs to ui.Rect. I know I can't sub class it, but I did think I would be able to add attrs to it dynamically. I have only tried with assignment. My reason for asking is to use the ui.rect class like views. You have the superview Rect, then assign a new attr subrects a list, which you append ui.rects to etc. seems to me a nice light weight way to handle a dynamic cell creation/definition of rects.
      Maybe i am way of base here. I am sure could make another class to enable this construct, but it seems like a lot of overheard and obscurity to me

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