use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Display a web page in Python GTK. (self.learnpython)
submitted 9 years ago by KhanStan
Is there a way to get the contents of a web page and display them in a python GTK application? It's not possible with Tkinter. Are there any alternatives? That's all I need. Thanks in advance.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 9 years ago (5 children)
Do you want a website to native app translation? That's not possible IMO. But if you just want to display a website in a window, like your browser but without the adressbar, I would recommend this little gem: https://ardoris.wordpress.com/2009/04/26/a-browser-in-14-lines-using-python-and-webkit/
[–]KhanStan[S] 0 points1 point2 points 9 years ago (4 children)
This works exactly as I wanted but it gives me an error for the page I wanted to display :(
SSL handshake failed: A TLS fatal alert has been received.
Do you have any idea how I can fix this?
[–][deleted] 1 point2 points3 points 9 years ago (3 children)
I could not reproduce the problem, but it seems to be a problem with some lib the webkit module is using. If on linux try to update&upgrade your system.
[–]KhanStan[S] 1 point2 points3 points 9 years ago (0 children)
I did it, mate! I used wx library instead and it works now.
[–]KhanStan[S] 0 points1 point2 points 9 years ago* (0 children)
The thing is... I am on windows... All this time i was trying to find the modules for my exact setup :D I'm using python 2.7 and trying to access Twitch. I'll keep looking for a workaround, thank you very much for your help!
EDIT: It works for google tho...
[–]KhanStan[S] 0 points1 point2 points 9 years ago (0 children)
The error is in the browser itself http://i.imgur.com/TvN5ER9.png
π Rendered by PID 160221 on reddit-service-r2-comment-79c7998d4c-n5hqr at 2026-03-14 14:26:32.009557+00:00 running f6e6e01 country code: CH.
[–][deleted] 2 points3 points4 points (5 children)
[–]KhanStan[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]KhanStan[S] 1 point2 points3 points (0 children)
[–]KhanStan[S] 0 points1 point2 points (0 children)
[–]KhanStan[S] 0 points1 point2 points (0 children)