Categories: Python | Code Examples | How To | S60 | UI
This page was last modified 17:19, 18 June 2008.
Using Topwindow
From Forum Nokia Wiki
An easy example of showing an image always on top in PyS60 with TopWindow.
import TopWindow import graphics import appuifw import e32 height = 29 width = 130 top = 59 left = 110 window = TopWindow.TopWindow() image = graphics.Image.new((width,height)) window.add_image(image, (width,height)) #If only width and height are specified, the image will not be resized. #In order to resize the image the final coordinates must be specified as well: #window.add_image(image, (width,height,x2,y2)) window.size = (width, height) window.corner_type = 'square' window.position = (left,top) window.background_color = 0xFFFFFF window.show() def exit(): window.hide() app_lock.signal() appuifw.app.exit_key_handler = exit app_lock = e32.Ao_lock() app_lock.wait()
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to write on active standby screen? | squalbee | Python | 8 | 2008-08-01 01:51 |
| [Announce] Rol-a-Bol v1.3 (Sensor API) | JOM | Python | 2 | 2008-07-09 16:55 |
| Need help with binding keys and File Browser | otadmor | Python | 20 | 2007-10-28 14:16 |
| Python for S60 1.3.13 released | jplauril | Python | 8 | 2006-11-21 15:59 |
| Displaying info "about the application" | bogdan.galiceanu | Python | 1 | 2007-10-31 06:23 |
