Package ocempgui :: Package widgets :: Package components :: Module ListItem :: Class TextListItem
[show private | hide private]
[frames | no frames]

Type TextListItem

object --+    
         |    
  ListItem --+
             |
            TextListItem

Known Subclasses:
FileListItem

TextListItem (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)
  set_text(self, text)
T.set_text (...) -> None
    Inherited from ListItem
  get_style(self)
L.get_style () -> Style
  has_changed(self)
L.has_changed () -> None
  set_collection(self, collection)
L.set_collection (...) -> None
  set_dirty(self, dirty)
L.set_dirty (...) -> None
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
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

text

The text to display on the TextListItem.
Get Method:
unknown-696518388(...)
Set Method:
unknown-696518444(...)

Generated by Epydoc 2.1 on Thu Jan 10 10:18:45 2008 http://epydoc.sf.net