×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    4

    Nokia E6-00: PyS60 does not use full display resolution (640x480)

    Hi,

    I try to display an 640x480px image on my Nokia E6-00 but only a quadratic section (480x480) will be shown on the left side.

    code line:
    canvas.blit(image1, target=(0,0))

    This behaviour occurs in both modes (PyShell and SiS Installer).

    I am using Python for S60 v2.0.0.

    Any help would be greatly appreciated,
    Thanks,
    Markus

  2. #2
    Registered User
    Join Date
    Jun 2012
    Posts
    4

    Re: Nokia E6-00: PyS60 does not use full display resolution (640x480)

    A few more details about the PyS60 problem on my E6-00 with Nokia Belle:
    If I execute the following sample code (should display 3 colored and touch-sensitive areas) just a white square will be displayed.
    The touch screen responds more or less randomly.

    Any ideas?


    import appuifw, e32, key_codes

    def one(dummy):
    appuifw.note(u"Section One")

    def two(dummy):
    appuifw.note(u"Section Two")

    def quit(dummy):
    global lock
    lock.signal()

    canvas=appuifw.Canvas()
    appuifw.app.screen = 'full'
    appuifw.app.body=canvas

    canvas.bind(key_codes.EButton1Down, one, ((50,50),(150,150)))
    canvas.bind(key_codes.EButton1Down, two, ((200,200),(300,300)))
    canvas.bind(key_codes.EButton1Down, quit, ((350,50),(450,150)))

    canvas.rectangle(((50,50),(150,150)), fill = (255,0,0))
    canvas.rectangle(((200,200),(300,300)), fill = (0,255,0))
    canvas.rectangle(((350,50),(450,150)), fill = (0,0,255))

    lock = e32.Ao_lock()
    appuifw.app.exit_key_handler=quit
    lock.wait()

    Last edited by sleepy_cats; 2012-06-14 at 12:13.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    11

    Re: Nokia E6-00: PyS60 does not use full display resolution (640x480)

    Quote Originally Posted by sleepy_cats View Post
    Hi,

    I try to display an 640x480px image on my Nokia E6-00 but only a quadratic section (480x480) will be shown on the left side.

    code line:
    canvas.blit(image1, target=(0,0))

    This behaviour occurs in both modes (PyShell and SiS Installer).

    I am using Python for S60 v2.0.0.

    Any help would be greatly appreciated,
    Thanks,
    Markus
    This is a bug, I solved this problem with a special method.


    Code:
    import appuifw,e32
    
    lock=e32.Ao_lock()
    old=appuifw.app.body
    cv=appuifw.Canvas()
    s0=cv.size
    appuifw.app.exit_key_handler=lock.signal
    appuifw.app.body=cv
    normal=(cv.size==s0)
    if not normal:
    #in this case canvas work correctly before you run 'appuifw.app.body=cv'
        appuifw.app.body=None
        cv=appuifw.Canvas()
        print cv.size
        lock.wait()
        appuifw.app.body=old
    else:lock.wait()
    Last edited by brian woo; 2013-03-09 at 04:09.

Similar Threads

  1. Replies: 0
    Last Post: 2010-04-02, 15:01
  2. Replies: 6
    Last Post: 2009-09-18, 13:06
  3. Camerawrapper: how to get the full resolution of camera?
    By markus_sunela in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2009-09-18, 04:11
  4. Nokia 5800 full keyboard display
    By eyalmnm in forum Mobile Java General
    Replies: 3
    Last Post: 2009-05-14, 14:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×