| Reply | « Previous Thread | Next Thread » |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Hi,
I'd like to know how to show text on a white background (canvas). For example, I set the canvas import appuifw, e32 import graphics def redraw(rect): canvas.clear(0xffffff) canvas = appuifw.Canvas(redraw_callback=redraw) appuifw.app.body = canvas appuifw.app.screen = 'full' e32.ao_sleep(20) e32.reset_inactivity() and I want to display a message on the white background. What function do I use and where do I put it? Thank you. |
|
You can use the canvas.text((left, top), message) method after canvas.clear(0xffffff)
where left and top are coordinates like (0, 12) and message is a unicode string |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Thanks. Seems to work.
|
|
Hi bogdan.galiceanu,
You can check this working example, it could help you: http://wiki.forum.nokia.com/index.ph...mage_on_canvas LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
|
Quote:
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Python for UIQ | cassioli | Python | 141 | 2008-06-11 19:16 |
| How to send an image with attachment in email | krtrivdi | Python | 1 | 2007-01-09 13:07 |
| Sending an image over email | jeclarim | Python | 3 | 2006-12-15 21:25 |
| Series 40 White Border on Full Canvas | ian@silicon-magic.co.uk | Mobile Java General | 0 | 2006-06-20 10:58 |
| Major problem with delegation to Canvas | bartekn | Mobile Java Media (Graphics & Sounds) | 8 | 2003-10-08 18:46 |