Python GUI Embedding a Web Browser

by: sampan.developer, 9 years ago


I thought of wouldn't it be nice if we can embed webpages in Python GUI Applications. I have used tkinter module in Python 3 and I am open to learn more gui modules too.
I need to embed a webpage into my GUI Application. Is there anyway I can do that with any GUI module?



You must be logged in to post. Please login or register an account.



So tkinter is not going to recognize HTML/CSS. You're going to have to code all of that in yourself, since that's what a browser does.

You could try to find examples of people making web browsers in tkinter, but good luck, that's probably very rare.

If I was you, I'd head over to PyQt instead. Lots of browser examples made with PyQt, and your life will be easier. For example: http://thecodeinn.blogspot.com/2013/08/tutorial-pyqt-web-browser.html

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.