[Bugs] #1586 UNSP: TableView widget
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Fri Jan 8 08:46:53 EST 2010
#1586: TableView widget
------------------------------------------+---------------------------------
Reporter: alsroot | Owner: erikos
Type: enhancement | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.88
Component: sugar-toolkit | Version: Git as of bugdate
Severity: Unspecified | Keywords:
Distribution: Unspecified | Status_field: Needinfo
------------------------------------------+---------------------------------
Comment(by alsroot):
(examples assume that TableView is model-less class, so we set number of
"real" columns/rown manually)
1st option:
{{{
table = TableView(cell_class=Cell, cell_numbers=(2,2))
table.column_numbers = 10
table.row_numbers = 10
}}}
will produce:
{{{
+-------------------+-------------------+
| | |
| cell_1(1) | cell_2(1) |
| | |
+-------------------+-------------------+
| | |
| cell_1(2) | cell_2(2) |
| | |
+-------------------+-------------------+
}}}
2st option:
{{{
table = TableView(cell_class=Cell, cell_sizes=(1,1))
table.column_numbers = 10
table.row_numbers = 10
}}}
will produce:
{{{
+---------+---------+---------+---------+
|cell_1(1)|cell_2(1)|cell_3(1)|cell_4(1)|
+---------+---------+---------+---------+
|cell_1(2)|cell_2(2)|cell_3(2)|cell_4(2)|
+---------+---------+---------+---------+
|cell_1(3)|cell_2(3)|cell_3(3)|cell_4(3)|
+---------+---------+---------+---------+
|cell_1(4)|cell_2(4)|cell_3(4)|cell_4(4)|
+---------+---------+---------+---------+
}}}
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/1586#comment:22>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list