Base class for info that can be represented as a table.
|
__init__(self,
sortable=False)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
dispose(self)
Releases references to improve chances of garbage collection. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
append(self,
entry)
equivalent to table.insert(table.size, entry) |
source code
|
|
|
|
|
|
|
|
|
set(self,
i,
field_name,
val,
undoing=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
index(self,
name,
raise_error=True)
Returns the index of the first row with "Name"==name. |
source code
|
|
|
|
|
|
|
|
|
get_by_name(self,
name,
field)
Returns the value of field, in the first row with
"Name"=name; or raises KeyError. |
source code
|
|
|
get_row_by_name(self,
name)
Returns a TableRow for the first row with
"Name"=name; or raises KeyError. |
source code
|
|
|
rows_meeting_criteria(self,
expr,
row_count=None) |
source code
|
|
|
copy_rows_from(self,
table,
copy_rows_type=0,
group=1,
inverse=False,
criteria='
' ,
on_copy=None) |
source code
|
|
|
check_rows_if(self,
copy_rows_type=0,
group=1,
inverse=False,
criteria='
' ,
on_copy=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__groups_occupied(self,
include_zero=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
global_name
how to locate self in global namespace, if possible
|
|
size
the number of rows
|
|
OnAddField
WeakEvent(name) called when a field is added
|
|
OnAfterInsert
WeakEvent(index, undoing) called after insertion and
all OnInsert callbacks (.set(...) if you like)
|
|
OnChecked
WeakEvent(index, checked) called on set_checked
|
|
OnDoubleClick
WeakEvent(index, field_name or None) called (e.g.
|
|
OnInsert
WeakEvent(index, undoing) called when a row is added
(read-only please)
|
|
OnRemoved
WeakEvent(index, undoing) called when a row was just
removed
|
|
OnRemoving
WeakEvent(index, undoing) called when a row is about
to be removed
|
|
OnRemovingField
WeakEvent(name) called when a field is being removed
|
|
OnSelect
WeakEvent(index, field_name or None, sender or None)
called when a row is highlighted
|
|
OnSet
WeakEvent(index, field_name, val, prev, undoing)
called when one field of a row is changed
|
|
accept
dict: field name -> conversion_function(string)->value; can
raise Exception on invalid input
|
|
all_stats
field_stats + group_stats
|
|
checked
list[row index] of bool, should row be included in batch actions
|
|
choices
dict: field name -> (list of values to choose among) or None
|
|
count_in_group
f(group) -> number of rows with Group==group
|
|
default
dict: field name -> default value
|
|
field_stats
{field_name : [mean, std, median, mode]}
|
|
fields
list of field names
|
|
fields_independent
list of field names marked independent e.g.
|
|
format
dict: field name -> format_function(value)->string
|
|
group_stats
[groups_occupied, rows_in_group, count_in_group]
|
|
groups_occupied
f(include_zero=False) -> sorted list of 'Group' values, no
duplicates, possibly no 0
|
|
label
the table's name
|
|
mean
{field_name : f(group=None) -> mean value of field for all
segments or group index}
|
|
median
{field_name : f(group=None) -> median value of field for all
segments or group index}
|
|
mode
{field_name : f(group=None) -> most common value of field for all
segments or group index}
|
|
rows_in_group
f(group) -> list of row indices with Group==group
|
|
sortable
(def False) whether the user should be able to sort by column
|
|
std
{field_name : f(group=None) -> std deviation of field for all
segments or group index}
|
|
units
dict: field name -> units_string
|
|
user_can_remove
list[row index] of bool, can remove via gui; def True
|