O'Reilly logo

WxPython Application Development Cookbook by Cody Precord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Surfing the Web in your app

Another great feature available in wxPython 3.0 is the new full-featured web browser control available in the wx.html2 module. This control provides a full rendering engine for the display of HTML with CSS and JavaScript. It uses a Webkit backend on GTK/OSX and an IE backend on MSW. This control provides a great way to display the documentation or HTML-based help files. It also lets us be leveraged to make a hard client for web-based applications that you may want to provide direct access for within your app. In this recipe, we will show how to get started with the WebView class by implementing a very simple web browser application using it.

How to do it…

You need to perform the following steps:

  1. First, let's take a look ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required