Table of Contents

Class: AttributeWidget | Twisted-0.17.4/twisted/manhole/ui/spelunk_gnome.py
--- | ---

### A widget briefly describing an object.

This is similar to a Visage, but has far less detail. This should display only essential identifiying information, a gtk.Widget suitable for including in a single table cell.

(gtk.Widgets are used here instead of the more graphically pleasing gnome.CanvasItems because I was too lazy to re-write gtk.table for the canvas. A new table widget/item would be great though, not only for canvas prettiness, but also because we could use one with a mone pythonic API.)

Base Classes |
--- | ---
gtk.Widget

Methods |
--- | ---
__init__ _makeWidgetObject getTextForLabel signal_buttonPressEvent signal_destroy
| __init__

    __init__ (
            self,
            explorer,
            parent,
            )

A new AttributeWidget describing an explorer.

| _makeWidgetObject

    _makeWidgetObject ( self )

### Make the GTK widget object that is me.

Called by __init__ to construct the GtkObject I wrap-- the ._o member of a pygtk GtkObject. Isn't subclassing GtkObjects in Python fun?

| getTextForLabel

    getTextForLabel ( self )

### Returns text for my label.

The default implementation of AttributeWidget is a gtk.Label widget. You may override this method to change the text which appears in the label. However, if you don't want to be a label, override _makeWidgetObject instead.

| signal_buttonPressEvent

    signal_buttonPressEvent (
            self,
            widget,
            eventButton,
            unused_data,
            )

| signal_destroy

    signal_destroy (
            self,
            unused_object,
            unused_data,
            )

Table of Contents

This document was automatically generated on Sat Apr 20 01:30:57 2002 by HappyDoc version 2.0