From: Alex T. <al...@tw...> - 2004-06-22 17:05:25
|
At 11:40 22/06/2004 -0400, Schollnick, Benjamin wrote: >Folks, > > > Ditto - I remember this bug too, but like Steve, I can't > > remember what the fix was. :-( > >7.3.1 Has seemed to clear up the problem.... Cool ! >But I have noticed a few things.... > >* There seems to be no way for the user to resize the dialog/HTML window Sorry - can't answer this one (yet) >* Scroll Bars, I do not see a way to force the scroll bars to be active...? > Do I have to explicitly add scroll bars? No - they'll appear if needed. >Also... > >* HTMLWindow requires a .html file to be passed to it? When I attempted to > use a string, it pops up a dialog window reporting that's a invalid > file... If you want to use a string passed in, you MUST have the very first character be a "<" Pythoncard's HTMLWindow class checks the first char, and if it's not a "<" it assumes it's a file name and uses that instead. [ Hmmm - I think this will maybe change some day :-] I changed my example to use an HTMLwindow, and the code in mydialog.py to be > def __init__(self, parent, txt=''): > model.CustomDialog.__init__(self, parent) > self.components.HtmlWindow1.text = "<html><body>some <b>text</b> > here" > and that worked OK. Otherwise, it treats the string as a file - I changed my code in mydialog.py to > def __init__(self, parent, txt=''): > model.CustomDialog.__init__(self, parent) > self.components.HtmlWindow1.text = "calendar.html" calendar.html was an existing HTML file. You could use this, writing the string to a tmp file to use HTMLWindow -- Alex. |