Languages/Python/PyKDE WebKit Tutorial/Part6: Difference between revisions

From KDE TechBase
No edit summary
(Mark for archiving)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Archived}}
{{Warning|This tutorial uses Qt4, PyQt4, and PyKDE4.}}
Now we can add our address bar.
Now we can add our address bar.


After creating the layout add:
After creating the layout add:


<code python>
<syntaxhighlight lang="python">
         self.addressBar = QLineEdit(self.widget)
         self.addressBar = QLineEdit(self.widget)
         layout.addWidget(self.addressBar)
         layout.addWidget(self.addressBar)
</code>
</syntaxhighlight>


A ''QLineEdit'' is a widget into which you can type a line of text.
A ''QLineEdit'' is a widget into which you can type a line of text.
Line 17: Line 20:




[[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part4|« Back to Part 5]] | [[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part7|On to Part 7 »]]
[[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part5|« Back to Part 5]] | [[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part7|On to Part 7 »]]
[[Category:Python]]

Latest revision as of 14:04, 31 May 2019


This page has been archived
The information on this page is outdated or no longer in use but is kept for historical purposes. Please see the Category:Archives for similar pages.
Warning
This tutorial uses Qt4, PyQt4, and PyKDE4.


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.


« Back to Part 5 | On to Part 7 »