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.


    Custom View from pyui file

    Pythonista
    2
    3
    732
    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.
    • Katterfelto
      Katterfelto last edited by

      I’ve just started to play with Pythonista. Is it possible to create a pyui file and the use it populate a custom view?

      I can only find examples of custom views populated using classes defined in the same file. I assume I can import a class in a different file and import it into my main file and use that, but pyui files don’t seem to define a class some I’m not sure what to do.

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

        See this thread, and the breadcrumbs therein:

        https://forum.omz-software.com/topic/5129/custom-view-class-loading-a-pyui-into-itself-with-instance-method-actions

        My memory on this is all a little fuzzy... See if it works, if not I can try to put together a more concrete examples.

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

          Thanks JonB I think that’s just what I needed.

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