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

    From KDE TechBase
    No edit summary
    m (Text replace - "<code python>" to "<syntaxhighlight lang="python">")
    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)

    Revision as of 20:34, 29 June 2011

    Now we can add our address bar.

    After creating the layout add:

    <syntaxhighlight lang="python">

           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 »