< Languages‎ | Python/PyKDE WebKit Tutorial
Revision as of 20:34, 29 June 2011 by Neverendingo (talk | contribs) (Text replace - "<code python>" to "<syntaxhighlight lang="python">")

Languages/Python/PyKDE WebKit Tutorial/Part5

We will change the top widget again adding a KMainWindow to contain our QWidget.

<syntaxhighlight lang="python">

       self.window = KMainWindow()
       self.widget = QWidget()

A KMainWindow is intended to be the top level widget in most KDE applications. It makes it very easy to add menus, toolbars and a statusbar to your application. In this example I'm afraid to say it exists only to work around a bug where the application crashes if we don't use it.

See the full code.

This version will look the same as the previous.


« Back to Part 4 | On to Part 6 »

Content is available under Creative Commons License SA 4.0 unless otherwise noted.