Difference between revisions of "Languages/Python/PyKDE WebKit Tutorial/Part6"
Neverendingo (talk | contribs) m (Text replace - "<code python>" to "<syntaxhighlight lang="python">") |
Neverendingo (talk | contribs) m (Text replace - "</code>" to "</syntaxhighlight>") |
||
Line 6: | Line 6: | ||
self.addressBar = QLineEdit(self.widget) | self.addressBar = QLineEdit(self.widget) | ||
layout.addWidget(self.addressBar) | layout.addWidget(self.addressBar) | ||
− | </ | + | </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. |
Revision as of 20:50, 29 June 2011
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.
This page was last edited on 29 June 2011, at 20:50. Content is available under Creative Commons License SA 4.0 unless otherwise noted.