-
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
[/code]
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
-
My guess is that some of the Nokia guys want you to DL 1.1.5 and test it with that version to.
-
[QUOTE][i]Originally posted by harp73 [/i]
[B]My guess is that some of the Nokia guys want you to DL 1.1.5 and test it with that version to. [/B][/QUOTE]
FORGOT the above.
May be I've drunk too much.
Pietro
Well, I'm a little embarrassed.
I look at the forum one more time, but it seems to me that there are nothing newer to be installed [b] into [/b] the phone, and in the emulator the error don't raise...
There is a SDK 1.1.5, but as SIS file, I find the same I'm using, so I think I'm updated, I don't?
Or there is a newer SIS, and it is present only in SDK? I'm downloading it, but it as a [i]little[/i] big, and also a little slow to come...
Pietro
-
[QUOTE][i]Originally posted by harp73 [/i]
[B]My guess is that some of the Nokia guys want you to DL 1.1.5 and test it with that version to. [/B][/QUOTE]
Actually, it works properly with 1.1.5 (fast)
Pietro
-
The bug are still here!
[QUOTE][i]Originally posted by pimol [/i]
[B]Actually, it works properly with 1.1.5 (fast)
Pietro [/B][/QUOTE]
It isn't true.
Now it appers only if I start with a empty text. Exaple:
[code]import appuifw
import e32
def exit_key_hand():
app_lock.signal()
def Vis(seeit):
old=appuifw.app.title
appuifw.app.title=u'Tester'
tx=appuifw.Text()
tx.color=(0,0,128)
tx.font=u'LatinBold17'
tx.style = appuifw.STYLE_BOLD
tx.set(seeit)
tx.style=0
tx.set_pos(0)
appuifw.app.body=tx
appuifw.app.exit_key_handler=exit_key_hand
app_lock.wait()
appuifw.app.title=old
appuifw.app.body=None
appuifw.app.exit_key_handler=None
if __name__=='__main__':
Vis('')
Vis(u'this run, the next again, no')
Vis('')
[/code]
The first and the last run have the default font and style. The second, the right one.
Pietro
-
Re: appuifw.text font
Some one help me, I use Nokia 7610, but i lost my font, now I can't write text message with word, i press out only number.
Thank