
Originally Posted by
ComplexT
So i dont want to draw on the image i have. i want the image there as a sort of a header to all my pages.
Hope i have explained it ok! i can add text to the photo as in example below but i need sort of independant picture and text
thank you again
I think there is a way:
Code:
import TopWindow, e32, appuifw
from graphics import *
bgimage=Image.open("C:\\Python\\myimage.jpg")
window=TopWindow.TopWindow()
window.add_image(bgimage, (0,0,240,120)) #These are the coordinates I used, you may use others instead
window.size=(240, 120) #These give the size of the displayed image
window.corner_type='square'
window.position = (0,0) #The "window"'s position
def quit():
window.hide()
app_lock.signal()
app_lock=e32.Ao_lock()
window.show()
appuifw.app.exit_key_handler=quit
app_lock.wait()
I hope that helps