[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-parts

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 27日 (月) 03:10:13 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts
-------------------------
@@ -111,7 +111,7 @@
 Gtk::ListStore is used to create lists of data that have no hierarchical relationships among rows. Following is an example "Grocery List" application, which contains three columns, all of which are built using Gtk::CellRendererText. The first column is a Boolean value displayed as true or false, that define whether or not the product should be purchased. (Later we will learn how to use Gtk::CellRendererToggle in the place of spelling out true or false. The second column is an integer, representing the quantity to purchase and the third is a text string describing the product.
 
 #######
-Before we look at the next example, I wish to point out how tree view and a model are connected. The order in which we create either the view or the model is not important, though depending on your style of programming you may have your preference. For instance, I prefer to create model before view, because I like to connect the two at the time when view is created. Let us look at the different ways you can accomplish this association for a model with two columns defined as String and Integer:
+Before we look at the Grocery List example, I wish to point out how tree view and a model are connected. The order in which we create either the view or the model is not important, though depending on your style of programming you may have your preference. For instance, I prefer to create model before view, because I like to connect the two at the time when view is created. Let us look at the different ways you can accomplish this association for a model with two columns defined as String and Integer:
 
  # Create a view
  view = Gtk::TreeView.new




ruby-gnome2-cvs メーリングリストの案内
Back to archive index