| Home | Trees | Index | Help |
|---|
| Package ocempgui :: Package widgets :: Package components :: Module ListItem :: Class TextListItem |
|
object--+ |ListItem--+ | TextListItem
FileListItemTextListItem (text=None) -> TextListItem
Creates a new TextListItem, which can display a portion of text.
The TextListItem is able to display a short amount of text.
The text to display on the TextListItem can be set through the 'text' attribute or set_text() method. The TextListItem does not support any mnemonic keybindings.
textlistitem.text = 'Item Text' textlistitem.set_text ('Another Text')
Attributes: text - The text to display on the TextListItem.| Method Summary | |
|---|---|
__init__(self,
text)
| |
T.set_text (...) -> None | |
| Inherited from ListItem | |
L.get_style () -> Style | |
L.has_changed () -> None | |
L.set_collection (...) -> None | |
L.set_dirty (...) -> None | |
L._select (...) -> None | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Property Summary | |
|---|---|
text: The text to display on the TextListItem. | |
| Inherited from ListItem | |
collection: The collection the ListItem is attached to. | |
dirty: Indicates, whether the ListItem needs to be redrawn. | |
selected: The selection state of the ListItem. | |
style: The style of the ListItem. | |
| Method Details |
|---|
set_text(self, text)T.set_text (...) -> None Sets the text of the TextListItem to the passed argument. Sets the text to display on the TextListItem to the passed argument. Raises a TypeError, if the passed argument is not a string or unicode. |
| Property Details |
|---|
textThe text to display on the TextListItem.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Jan 10 10:18:45 2008 | http://epydoc.sf.net |