test/table_view/testTableView.rb in ppcurses-0.1.1 vs test/table_view/testTableView.rb in ppcurses-0.1.2
- old
+ new
@@ -39,9 +39,13 @@
@app = PPCurses::Application.new
@table_view = PPCurses::TableView.new
+col_a = PPCurses::TableColumn.new('Activity')
+col_a.width = 10
+@table_view.add_table_column(col_a)
+
values = %w(Music Reading Lifts)
data_source = PPCurses::SingleColumnDataSource.new(values)
@table_view.data_source=data_source
\ No newline at end of file