×

Discussion Board

Results 1 to 6 of 6

Threaded View

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    34

    appuifw.text font

    Bug: it appear on my 6600, not in emulator. OS V 4.09.01 - 26.2.04, python 1.1 prealpha

    This very simple script:

    Code:
    import appuifw
    import e32
    
    def exit_key_hand():
          app_lock.signal()
    
    app_lock = e32.Ao_lock()
    old=appuifw.app.title
    appuifw.app.title=u'Title'
    tx=appuifw.Text()
    tx.color=(0,0,128)
    tx.font=u'LatinBold17'
    tx.set(u'default')
    tx.set_pos(0)
    appuifw.app.body=tx
    appuifw.app.exit_key_handler=exit_key_hand
    lmenu=[(u"Exit, don't save",exit_key_hand)]
    appuifw.app.menu=lmenu
    app_lock.wait()
    appuifw.app.title=old
    appuifw.app.body=None
    appuifw.app.exit_key_handler=None
    When I push the right arrow, font goes down to default.

    It appears if text is a only word w/o spaces. If I put the line:

    tx.set(u'default text') instead of
    tx.set(u'default')

    it run correctly.

    If I put a char into before pushing the arrow, it run correctly.
    If I push the dow, left, up arrow before the right one, it run,

    Pietro
    Last edited by pimol; 2005-07-08 at 12:31.

Posting Permissions

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