Difference between revisions of "Languages/Python/PyKDE WebKit Tutorial/Part6"

Jump to: navigation, search
(New page: Now we can add our address bar. After creating the layout add: <code python> self.addressBar = QLineEdit(self.widget) layout.addWidget(self.addressBar) </code> A ''QLine...)
 
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
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 17:
  
  
[[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part4|« Back to Part 5]] | [[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part6|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 17:39, 10 March 2016

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 10 March 2016, at 17:39. Content is available under Creative Commons License SA 4.0 unless otherwise noted.