Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User willy_back's Avatar
    Join Date
    Apr 2008
    Posts
    2
    hi,

    I'm new to Python..
    just can't display non-ascii characters on canvas mode. I have tried with this code:

    from appuifw import *
    from graphics import *

    app.body = appBody = Canvas()
    unicodeString = u""
    for ch in range(0x0080, 0x00ff):
    unicodeString = unichr( ch ).encode('utf-8')
    appBody.text( o, unicode( unicodeString, 'utf-8' ) )
    any ideas?

    thanks in advance.

    Cheers,
    Willy

  2. #2
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    hi willy
    first of all welcome to the fantastic python Dibo.
    Plz write the code by using the quote marks and there are lot of typing mistake in ur code plz check that first.

  3. #3
    Registered User willy_back's Avatar
    Join Date
    Apr 2008
    Posts
    2
    found my bug..

    Cheers,
    Willy

Similar Threads

  1. KerrGeneral
    By federicopalumbo in forum Python
    Replies: 6
    Last Post: 2008-03-26, 16:11
  2. How to print on a white canvas?
    By bogdan.galiceanu in forum Python
    Replies: 4
    Last Post: 2007-11-09, 04:42
  3. How to send an image with attachment in email
    By krtrivdi in forum Python
    Replies: 1
    Last Post: 2007-01-09, 12:07
  4. Sending an image over email
    By jeclarim in forum Python
    Replies: 3
    Last Post: 2006-12-15, 20:25
  5. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved