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.
Repeat views
-
Is it possible to have one view mirror another. For instance if I had a drawing app view that was being drawn in would show as I draw it in another view. Basically like a camera of the first view
-
@robertiii, when you ask is it possible. I am sure it is. But in a way your question needs refining. For example I could image creating an image of the first view and updating the second view at various intervals depending on how fast your device could do the updates. It's very crude...I am not sure if there is a way to direct the drawing cmds from one ImageContext to another ImageContext when using the draw method in a custom class. Also there maybe other objc tricks. But again, I think you should explain your expectations a little more. It could dramatically change the complexity of the answer
-
I am creating a presentation app that will allow the user to select a number of media types (photo, video, webview, youtube video, etc.) and display them on an airplay screen. I am currently working on the webview. The best way I can see is that on the iPad there is a webview and that is simply mirrored to the airplay screen. That way the user has control of scrolling, clicking, etc. Sorry if this isn't making sense. It is quite complicated I know.
-
@robertiii , sorry I am not sure I am getting it 100%. But if you look at @zrzka project Black Mamba (gist here). In the experimental dir he has an external screen. This might be useful for you
-
I have the second screen! Works great. The idea would be that anything done on one ui view would be done to another
-
@robertiii, you can snapshot any view and display the image in an ImageView.
The code I use for snapshots was lifted from something by @Phuket2:
def snapshot(view): with ui.ImageContext(view.width, view.height) as ctx: view.draw_snapshot() return ctx.get_image()