On Thu, 07 Feb 2013 04:10:10 -0000
tbnorth <email address hidden> wrote:
> it didn't immediately work, but there shouldn't be much more to it than
> that - and updating a lot of log messages of course.
so this does work
from PyQt4 import QtCore
w = c.frame.top.findChild(QtCore.QObject, 'log-widget')
w.setReadOnly(True) # so click on link works
w.setOpenLinks(False) # so click on link doesn't clear text
and I think this idea is a good one - but a lot of changes would be
needed - nothing too critical I think, but enough to require some
thought / discussion.
- g.es() is used for putting the 'reading: xxx' messages in the log
- g.es() escapes HTML so you see the markup code
- a keyword flag for g.es() could suppress that behavior
- many calls to g.es which write 'reading: xxx' messages would
need updating
On Thu, 07 Feb 2013 04:10:10 -0000
tbnorth <email address hidden> wrote:
> it didn't immediately work, but there shouldn't be much more to it than
> that - and updating a lot of log messages of course.
so this does work
from PyQt4 import QtCore top.findChild( QtCore. QObject, 'log-widget') ly(True) # so click on link works nks(False) # so click on link doesn't clear text
w = c.frame.
w.setReadOn
w.setOpenLi
def anchorClicked(url, c=c):
g.handleUrl( url,c=c, p=c.p)
url = str(url.toString())
w.anchorCli cked.connect( anchorClicked) w.anchorClicked )
g.es(
w.append( "<div>< a href='http:// www.google. com/'>Google</a></div>")
and I think this idea is a good one - but a lot of changes would be
needed - nothing too critical I think, but enough to require some
thought / discussion.
- g.es() is used for putting the 'reading: xxx' messages in the log
- g.es() escapes HTML so you see the markup code
- a keyword flag for g.es() could suppress that behavior
- many calls to g.es which write 'reading: xxx' messages would
need updating