Multi-line text in StaticBox component

Les & Jane Hazlett <[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
Hi,

This seems so easy I am embarrassed to ask, but somewhere I missed
something.

I can't generate multi-line text in a StaticBox component. When I
enter a '\n' newline characer in the text, it displays the text including
the '\n'.

When the string is:

'This is line one. \n This is line two.'
It displays as:

This is line one. \n This is line two.
rather than as:

This is line one.
This is line two.
The wxWidgets documentation says that adding the newline character
will yield multi-line text.

What am I doing wrong?

HERE IS THE SCRIPT

from PythonCard import model

class MyMain(model.Background):

pass

if __name__ == '__main__':

app = model.Application(MyMain)

app.MainLoop()

HERE IS THE RESOURCE FILE

{'application':{'type':'Application',

'name':'myMain',

'backgrounds': [

{'type':'Background',

'name':'doWork',

'title':'My
Work',

'size':(294,
102),

'components': [

{'type':'StaticText',

'name':'StaticText1',

'position':(10, 10),

'text':'This is line one. \\n This is line two.',

},

] # end components

} # end background

] # end backgrounds

} }

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.