Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived Talk:How to use Canvas in PySymbian

From Wiki
Jump to: navigation, search
{{{width}}}
04 Sep
2009

{{{width}}}
14 Sep
2009

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.
20 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.

×