Archived Talk:How to use Canvas in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search
04 Sep

14 Sep

Eraestec - Full screen on Symbian^3

From the forums:see :http://www.developer.nokia.com/Community/Discussion/showthread.php?221892-Display-full-screen-canvas-on-Symbian-3&highlight=canvas You need to add the following line:

appuifw.app.directional_pad = False

before creating the canvas so that the canvas Really covers the full screen. This is due to "The directional pad is a feature of Symbian^1 phones that is not implemented on S^3 phones" also note c.text((screen_w / 10, screen_h - screen_h / 10) Causes the text to appear off screen this can be remedied by replacing the line with the following

   c.text((c.size[0] / 10, c.size[1] - (c.size[1] / 10)), u"Move the dot", 0x008000, font=(u'Nokia Hindi S60', 35, appuifw.STYLE_BOLD))

where c.size is a tuple defining the canvas size.

This solution continues to work even it the screen orientation is changed

eraestec 18:26, 12 September 2011 (EEST)

Hamishwillee - Eraestec - thanks for the tip

Hi @Eraestec

Thanks for the tip - very useful. Feel free to add this within the body of the text, perhaps as a Tip, Note or Warning. You can't guarantee the author is still watching the article, although in this case I bet he is!

Regards -Hamish

hamishwillee 04:10, 13 September 2011 (EEST)

This page was last modified on 8 May 2013, at 04:17.
10 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.