Using Quickly for text-heavy app
Posted
by
Kevin
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Kevin
Published on 2012-09-05T15:00:16Z
Indexed on
2012/09/05
15:51 UTC
Read the original article
Hit count: 288
application-development
I am trying to create a small app that displays documentation. When it is run, the application window will display a main menu with buttons labeled 'Document 1', 'Document 2', etc. If a user clicks on one of those buttons, the text from the corresponding document will be displayed in the window. Very basic. The text documents range in length from 1000 to 5000 words, and they need basic formatting (bold, italic, maybe one or two font choices).
My question is this: what is the best way to store and display long blocks of formatted text, using Quickly? There seems to be a few options: (1) I could load the text blocks into long python strings, (2) I could load the text from text files, or (3) I could somehow copy and paste the formatted text into Glade.
In the first two options, I'm not sure how I would format the text (add italic and bold, for instance) once it was loaded.
I have experience with PHP/MySQL/HTML/CSS/Javascript, but I'm new to Python. Any help would be appreciated.
© Ask Ubuntu or respective owner