Home | Trees | Index | Help |
|
---|
Package stripchart :: Module striptableau :: Class TableauItem |
|
Item to go insize a StripTableau
widget.
This widget is designed to be placed within a StripTableau
widget, to graphically display
a single channel of data. Ideally, this widget will not be instantiated
directly by the user, but rather indirectly via the StripTableau
widget's
addChannel
method.
Once instantiated the TableauItem
associated with some data is
returned by both the addChannel
and getChannel
methods of the StripTableau
widget.
TableauItem
has a "metadata"
region on the right. This metadata region can display the name of the
channel and a close button by default, and optionally a caller-specified
component which can display additional information. To make this metadata
region visible, the caller should do the following:
metawidth
instance variable to an
appropriate size (eg: 100).
name
of the channel.
meta
instance variable to a
gtk.Widget
subclass which is displayed beneath the label
and button.
Method Summary | |
---|---|
__init__(self,
data,
selection,
hadjustment,
vadjustment)
| |
Delete attributes method. | |
Get attributes method. | |
Set attributes method. | |
Does initial GUI setup for the TableauItem . | |
Sets the meta-component for the widget. | |
Sets the name of the channel displayed by this TableauItem . | |
Sets up the minimize button. |
Instance Variable Summary | |
---|---|
Sequence type. | data : Data displayed by the widget. |
int |
gradewidth : Width of the VGrade on the left of the widget. |
gtk.Adjustment |
hadjustment : Controls the horizontal range of the widget. |
gtk.Widget subclass. |
meta : Meta-data component for the TableauItem . |
int |
metawidth : Width of the meta-data area on the right of the widget. |
gtk.Button |
minbutton : Minimize button from the TableauItem . |
string |
name : Name of the channel. |
float |
period : Sampling period. |
gtk.Adjustment |
selection : Controls the selection of the widget. |
gtk.Adjustment |
vadjustment : Controls the vertical range of the widget. |
gtk.Frame |
widget : Read-only pseudo-parent widget. |
Method Details |
---|
__delattr__(self, name)Delete attributes method.
|
__getattr__(self,
name)
Get attributes method.
|
__setattr__(self, name, value)Set attributes method. Note that the only class-local instance variables arewidget and chart . All others
are stored in the chart instance variable. This allows all
the special attributes from ScaledStripChart to propagate into this
class with the minimum of effort.
|
__init_gui(self, data, selection, hadjustment, vadjustment=None)Does initial GUI setup for the
__metaDataTable has no contents.
|
__set_meta(self, value)Sets the meta-component for the widget. |
__set_name(self, name)Sets the name of the channel displayed by this name is "" , an empty string,
then the label is removed from the widget. This method also triggers
button addition and removal.
|
__setup_minbutton(self)Sets up the minimize button. |
Instance Variable Details |
---|
dataData displayed by the widget. See theStripChart widget for information about
valid data objects.
|
gradewidthWidth of theVGrade on the left of the widget.
|
hadjustmentControls the horizontal range of the widget.
|
metaMeta-data component for theTableauItem .
|
metawidthWidth of the meta-data area on the right of the widget.
|
minbuttonMinimize button from theTableauItem .
|
nameName of the channel.
|
periodSampling period.
|
selectionControls the selection of the widget.
|
vadjustmentControls the vertical range of the widget.
|
widgetRead-only pseudo-parent widget.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 25 11:04:43 2003 | http://epydoc.sf.net |