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.
Load Image from URL
Load_view assumes you have created an UI file with your ui.view but you need to define the path/file name of your file in load_view(file).
Example: you have a file test.pyui, thus load_view('test')
And If you comment/remove the "while true" line, you'll see your picture.
The documentation said that by leaving it blank it will default to the same file name but with 'pyui'. The UI portion will load, and the text appears. However, the imageview is blank. I just took what worked with the text (page_text = v['textview1']) and tried it for the image. I assume the problem is there, but I am not sure what it is.
You're right for the default name.
I've tried without the "while true" and the picture is displayed
The load_view is asynchronous and you infinite loop doesn't let enough time for loading the URL.
Why do you put this while loop?
Not sure. I commented out the line, but it still does not load for me.
Strange, for me, it's ok
Did you move the next line left?
Does the textview object not hide the imageview object?
Here is the UI file looks like:
The imageview is above the textview.
Here is what my output looks like:
I just got the same problem, picture does not appear any more.
Remove Pythonista app from tasks list (4/5 fingers up, slide app up) and restart Pythonista
It works, thanks. Do you know why I needed to restart the app?
No, sorry but @omz is watching you 😅
You'll receive an explanation.
Perhaps, the site where you get your picture does not respond immediately if you make too much requests from an app, I have had this kind of problems on Google site.
In reality, when your picture is not displayed, the script seems locked because even the close button does not response.