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.


    Secondary display

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

      I have an idea rattling in my brain and one of the big pieces of it is about UI.

      With UI in Pythonista, is it possible to have a secondary presentation shown on an external display (projector, TV) via Lightning to HDMI/VGA adapter?

      So one potential application would be having a grid of slides on your iPad UI with a projector only showing the currently selected slide.

      This is a possible thing in iOS. I have some apps that have a "presentation mode." (Keynote for example does this (by default?) when connected to an external display).

      Anyway- wondering if it's possible! Thanks!

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

        I'm thinking it may be possible with ctypes and the beta.

        using the apple docs I have been able to
        get the list of UIScreen.screens, and access the current screen object.
        create a new UIWindow and add a subview to it (via a ui.View._objc_ptr)

        I don't have an external display... so not sure if is possible to proceed further. we'd need to se the UIWindow screen property to point to the second screen, and set the window size. I have not had any luck setting the frame size, perhaps because I just really don't get objective c. trying to set the scene property crashes, as does trying to Unhide the window.

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

          Okay- thanks for your input. I really was wondering if it's possible- of course getting there is always the interesting part.

          For now I'll put this on the shelf. I don't have the beta and I'm really just a beginner at Python - trying to add in objective C makes things sound very complicated.

          Perhaps someday I'll try at this one! I have a lot of use for something like that- (a lot of presentations)!

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