| Reply | « Previous Thread | Next Thread » |
|
Im using the appuifw.Text() control to get some input from the user and i want to split the text that i get by lines, meaning, i want to create a list that every object in the list will be a line from the text, so how can i split the text by lines, whats the line break char?
Thanks. |
|
Quote:
But I think the original question is "how to get and parse text from appuifw.Text()". Because Unicode paragraph separator (U+2029) is used for line breaking inside appuifw.Text(), you should split the input text by u'\u2029'. Here is a sample script. Code:
import e32
import appuifw
def get_list():
list = appuifw.app.body.get().split(u'\u2029')
appuifw.note(unicode(str(list)), 'conf')
lock = e32.Ao_lock()
appuifw.app.body = appuifw.Text()
appuifw.app.menu = [(u'Get List', get_list),
(u'Exit', lock.signal)]
appuifw.app.exit_key_handler = lock.signal
lock.wait()
![]() |
|
@Hiisi yes, it's true, you're right
I wrote how put text to appuifw.Text (not a get) - mea culpa ![]() E51 |
|
Thanks, works great!
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| 调用OpenC/C++的问题 | shaojieli | Symbian | 32 | 2008-08-20 10:48 |
| Multiple input in a single form | RB_Sahu | Symbian User Interface | 2 | 2007-10-05 09:00 |
| displaying labels with multiple lines and fonts in a List | rien | Mobile Java General | 6 | 2007-09-13 01:47 |
| WML multiple line text input? | eliokenta | Browsing and Mark-ups | 0 | 2005-04-25 16:13 |
| List not display text in multiple lines | erracid8 | Mobile Java Media (Graphics & Sounds) | 5 | 2004-08-09 21:34 |