| Home | Trees | Index | Help |
|
|---|
| Module eagle :: Class Table |
|
object--+ |_EGObject--+ |_EGWidget--+ | Table
Data table.
Each column should have only one type, it will be checked. Can be accessed as a python list:>>> t = Table( 't', 'table', [ 1, 2, 3 ] ) >>> t[ 0 ] [ 1 ] >>> del t[ 1 ] >>> t[ : ] [ 1, 3 ]
| Method Summary | |
|---|---|
Table constructor. | |
__contains__(self,
row)
| |
__create_column_cell_format_func__(self,
col,
cell_rend)
| |
__delitem__(self,
index)
| |
__delslice__(self,
start,
end)
| |
__get_default_value_function_for_type__(self,
type)
| |
__getitem__(self,
index)
| |
__getslice__(self,
start,
end)
| |
__iadd__(self,
other)
| |
__len__(self)
| |
__nonzero__(self)
| |
__setitem__(self,
index,
other)
| |
__setslice__(self,
start,
end,
slice)
| |
__setup_connections__(self)
| |
__setup_connections_changed__(self)
| |
__setup_connections_selection__(self)
| |
__setup_gui__(self)
| |
__setup_items__(self)
| |
__setup_model__(self)
| |
__setup_table__(self)
| |
Callback for 'Add' button. | |
Dialog used to edit data from table. | |
append(self,
row,
select,
autosize)
| |
clear(self)
| |
columns_autosize(self)
| |
Callback for 'Delete' button. | |
Callback for 'Edit' button. | |
Dialog used to edit data from table. | |
extend(self,
rows,
select,
autosize)
| |
Give keyboard focus to this widget. | |
get_label(self)
| |
insert(self,
index,
row,
select,
autosize)
| |
move_down_callback(self,
index)
| |
move_up_callback(self,
index)
| |
select(self,
index)
| |
selected(self)
| |
set_label(self,
label)
| |
| 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.__setattr__('name', value) <==> x.name = value | |
| Property Summary | |
|---|---|
app | |
label | |
| Class Variable Summary | |
|---|---|
dict |
default_value_function_for_type = {<type 'bool'>: <type ...
|
int |
spacing = 3 |
| Method Details |
|---|
__init__(self,
id,
label='',
items=None,
types=None,
selected=None,
headers=None,
show_headers=True,
editable=False,
repositioning=False,
expand_columns_indexes=None,
hidden_columns_indexes=None,
cell_format_func=None,
user_widgets=None,
selection_callback=None,
data_changed_callback=None,
scrollbars=True,
expand_policy=None,
active=True,
visible=True)
|
add_callback(self)Callback for 'Add' button. This method is called when 'Add' button, visible when editable=True, is clicked. Default implementation creates a new row using some defaults for known objects, like bool, numbers and strings or calls default_value() on type to get some default value. If none of these are available, then None will be used. If user accept values, row will be append()ed to table, otherwise it will be forgotten and garbage collector will remove then. If type is not known by system (so default_value() was called), object.commit() will be called, otherwise object.rollback() will be called. You can use this to perform some action on database. It can be overloaded by applications so more ellaborated actions can be done. |
add_dialog(self, data)Dialog used to edit data from table.
|
del_callback(self, rows)Callback for 'Delete' button. This method is called when 'Delete' button, visible when editable=True, is clicked. If row object has delete(), it will be called before row is excluded. |
edit_callback(self, rows)Callback for 'Edit' button. This method is called when 'Edit' button, visible when editable=True, is clicked. If row objects has commit() or rollback() methods, they'll be called based on user action (entry_dialog() returned row or
None)
|
edit_dialog(self, data)Dialog used to edit data from table.
|
focus(self)Give keyboard focus to this widget.
|
| Property Details |
|---|
label |
| Class Variable Details |
|---|
spacing
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Sun Apr 22 21:30:28 2007 | http://epydoc.sf.net |