Development/Languages/Python/PyKDE WebKit Tutorial/Part6

Jump to: navigation, search

Now we can add our address bar.

After creating the layout add:

        self.addressBar = QLineEdit(self.widget)
        layout.addWidget(self.addressBar)

A QLineEdit is a widget into which you can type a line of text.

See the full code.

The programme with a line edit for an address bar.

Pykde-tutorial-3.png


« Back to Part 5 | On to Part 7 »


This page was last modified on 29 June 2011, at 21:50. This page has been accessed 4,162 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal