< Languages | Python/PyKDE WebKit Tutorial Revision as of 18:16, 27 June 2011 (view source)Nicolas17 (talk | contribs) (oops.)← Older edit Revision as of 17:39, 10 March 2016 (view source) Ochurlaud (talk | contribs) m (Ochurlaud moved page Development/Languages/Python/PyKDE WebKit Tutorial/Part4 to Languages/Python/PyKDE WebKit Tutorial/Part4)Newer edit → (No difference) Revision as of 17:39, 10 March 2016 Now we want to prepare to add an address bar. Replace the __init__ method with: self.widget = QWidget() layout = QVBoxLayout(self.widget) self.web = QWebView(self.widget) self.web.load(QUrl("http://kubuntu.org")) layout.addWidget(self.web) self.widget.show() Now instead of having the QWebView as our top widget we have a plain QWidget. This widget contains a layout which is not a visible widget but ensure child widgets are put in a sensible place. It is a QVBoxLayout which will put widgets in a vertical colum. See the full code. This version will look the same as the previous. « Back to Part 3 | On to Part 5 » Retrieved from "https://techbase.kde.org/index.php?title=Languages/Python/PyKDE_WebKit_Tutorial/Part4&oldid=86902" Category: Python Content is available under Creative Commons License SA 4.0 unless otherwise noted.