Help with ImageView
I am new to pythonista. I am trying to draw an image on ui. Can someone take a look at this program and help me.
from scene import *
image1= Image.new("RGBA", (512, 512), "#000")
draw = ImageDraw.Draw(image1, image1.mode)
if ui.get_screen_size() >= 768:
use the pil2ui function, and set the image view image attribute to the output of that function
btw, formatting code for the forums requires
[ a blank line ] ``` (three backticks... long tap the single quote on iOS) [your code] ```
Testing...I thought you need the word python after the 3 ticks, will test below.
# no python after the 3 ticks import ui If __name__ == '__main__': pass:
#with python after the 3 ticks import ui If __name__ == '__main__': pass:
Ok, both work, but python syntax coloring when python is used
Lol, watching, f1, forum, programming and drinking all the same time :)
Drinking coffee in the "States" and watching forum. Happy Fathers day to those who are, and to those who have one.