Hi Ed,
Hi guys,
I came across a few apps that apparently are using some sort of HTML
rendering for some part of their applications (Gwibber and Digsby
comes to mind) and am wondering why they chose that particular path/
route. Is it because HTML offers a more flexible layout?
Digsby is actually using wx, and wxWebKit for its HTML rendering. 
There are a couple reasons to do this. One is that, if you want complex UIs with modern effects like semi-transparent controls, etc., then doing it in something like wx is far more painful. Windows in particular does not support transparent controls that differ from transparent windows, and most of the transparency seen in Windows is a result of some very convoluted hacks. Animations and such are often a lot easier done with CSS properties and a few JavaScript tweaks than hand-coding all the animation in control drawing routines. Plus, if you're doing all this stuff, browsers have been tweaked for high performance, but if you do it all by hand in something like wx, you will have to measure and debug all performance problems yourself.
Also, HTML layouts are easier to modify on the fly. Doing a complete UI redesign might take only a few hours depending on how you do it.
Lastly, you might want to make a desktop front end to a web interface stored on a server, so that you can share one UI between desktop, web, and maybe mobile apps.
A few more questions that I'd like to ask are:
1) How far these apps utilize the HTML rendering? just HTML (and CSS?)
or HTML and JavaScript?
You'd have to ask them that. 
2) For those who chose or have experienced using HTML renderer for UI/
layout purposes, mind to share your experience on using it? (i.e.:
difficulties, no-no, gotchas, etc)
The main issue is that web embedding on wx is a bit of a mess right now. If you go the wx "native rendering engine" approach, you need to be ready to deal with differences in rendering engines from IE 6 to the latest Safari / WebKit release. That can be even more messy / problematic than dealing with cross-platform desktop issues in some cases, because the bugs can be more subtle and require more sophisticated workarounds.
Regards,
Kevin
···
On Feb 9, 2012, at 7:32 PM, edwin.nathaniel wrote:
I'd like to know a few patterns how people are using HTML renderer as
part of their apps.
Thanks!
Ed
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en