On Jan 10, 2014 12:28 PM, "Gaurav gaur" <[email protected]> wrote:

> Hi all,
> I am trying to make my own browser( a mini html and JavaScript browser) in
> python.
> I am done with lexing and parsing html. I have the abstract syntax tree
> available but now i want to display it .
> For that i am looking for some API available in which i can draw list,text
> box's,tables,etc so that i can call the functions available in this API to
> draw them.
>
> If any one knows of any such API then please suggest me one ..
>
>
I would definitely like to know what is the end product in mind. Since
developing a production ready browser is not a trivial pursuit. HTML
browser unlike xml parsers need to deal with large set of outliers. So
unless you would like to demonstrate just a small a subset of web running
in your browser, I would recommend webkit or gecko toolkits as starting
point. Both gecko and webkit are available as library in python.

But if you are true and brave. The intend you venture beyond explicable,
you could look at cairo, gtk canvas and goocanvas for rendering target. If
these libraries also look too tame go ahead and use OpenGL as the rendering
target.

Do let me know, what you end up doing ...

> Thanks
> Gaurav
>
>
-- 
Supreet Sethi
Ph US: +19173102635
Ph IN: +919811143517
Github: https://github.com/djinn
Ph Skype: d_j_i_n_n
Profile: http://www.google.com/profiles/supreet.sethi
Twt: http://twitter.com/djinn

Use https://www.mashape.com/djinn/textuality to convert html to text

-- 
-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

--- 
You received this message because you are subscribed to the Google Groups 
"Linux User Group @ IIT Delhi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to