From: Alex T. <al...@tw...> - 2004-06-18 18:52:49
|
At 09:39 18/06/2004 -0400, Schollnick, Benjamin wrote: >Folks, > > I'm probably missing something simple here.... > > I am working on a file viewer, and using a scrolledMessagedialog... > >PythonCardPrototype.dialog.scrolledMessageDialog (self, "".join(display), >"License File Contents") > > And while I am mainly using ASCII text, I would like to add some >"spice" and flavor to the text. This could be as simple as Bold, etc, but I >do not see any options documented regarding how to control the text display >in the ScrolledMessageDialog Windows... > > I even checked the WxPython pages, and do not see anything there >talking about the text format of the scrolledMessage Windows.... > > Am I limited to pure ASCII? no HTML, or other tricks to support >anything else? You could use a custom dialog, and use an HTMLWindow inside it. If you even need it to be a dialog - might be just as easy to display the file within the primary window ? (I haven't actually used an HTMLWindow yet - but I used FindFiles on the samples directory, searched for "html" and took it from there ..... looks like it should be straightforward .... If you haven't used it, FindFiles is *really* useful to find examples of almost anything within PythonCard's own programs and samples.) -- Alex Tweedly. |