KDE 4.3 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

LineEdit Class Reference

from PyKDE4.plasma import *

Inherits: QGraphicsProxyWidget → QGraphicsWidget → QObject
Namespace: Plasma

Detailed Description

LineEdit plasma/widgets/lineedit.h <Plasma/Widgets/LineEdit>

Provides a plasma-themed KLineEdit.


Signals

 editingFinished ()
 returnPressed ()
 textEdited (QString text)

Methods

 __init__ (self, QGraphicsWidget parent=0)
 editingFinished (self)
bool isClearButtonShown (self)
KLineEdit nativeWidget (self)
 returnPressed (self)
 setClearButtonShown (self, bool show)
 setStyleSheet (self, QString stylesheet)
 setText (self, QString text)
QString styleSheet (self)
QString text (self)
 textEdited (self, QString text)

Method Documentation

__init__ (  self,
QGraphicsWidget  parent=0
)
editingFinished (   self )
Signal syntax:
QObject.connect(source, SIGNAL("editingFinished()"), target_slot)
bool isClearButtonShown (   self )

Returns:
true if the clear button is set to be shown
Since:
4.3

KLineEdit nativeWidget (   self )

Returns:
the native widget wrapped by this LineEdit

returnPressed (   self )
Signal syntax:
QObject.connect(source, SIGNAL("returnPressed()"), target_slot)
setClearButtonShown (  self,
bool  show
)

Shows a button to clear the text

Since:
4.3

setStyleSheet (  self,
QString  stylesheet
)

Sets the stylesheet used to control the visual display of this LineEdit

@arg stylesheet a CSS string

setText (  self,
QString  text
)

Sets the display text for this LineEdit

@arg text the text to display; should be translated.

QString styleSheet (   self )

Returns:
the stylesheet currently used with this widget

QString text (   self )

Returns:
the display text

textEdited (  self,
QString  text
)
Signal syntax:
QObject.connect(source, SIGNAL("textEdited(const QString&)"), target_slot)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal