Displaying 1 result from an estimated 1 matches for "append_array".
2007 Nov 13
3
New wxTree method
Here''s my first try at a contribution to the wxRuby project:
The tree control seemed to lack a more Ruby-ish way to add a bulk of
items to a tree control (and to easily connect a data structure to a
tree). Since tree view can be seen as an array of arrays, I simply added
a method called append_array (see attached file). With it, you can add a
full tree as simple as:
---
root = treectrl.add_root("Root")
treectrl.append_array(root, ["one", "two", ["sub1", "sub2"], "three"])
---
It also gives your objects the possibility to interact a...