Displaying 3 results from an estimated 3 matches for "parent_nod".
Did you mean:
parent_node
2007 Dec 30
1
ReOrdering Wx::TreeCtrl Items
...(175, 150), :style => Wx::TR_HIDE_ROOT | Wx::TR_EDIT_LABELS
| Wx::TR_HAS_BUTTONS | Wx::TR_LINES_AT_ROOT)
tcr_project_root = @tc_project_list.add_root("Project List")
populate_project_tree(@project_list, tcr_project_root)
#...
#...
def populate_project_tree(h_project_list, parent_node)
h_project_list.each {|key, value|
tree_node = @tc_project_list.append_item(parent_node, key.to_s)
if value.class.to_s == "Hash"
populate_project_tree(value, tree_node)
end
}
end
#...
#==================================
The b...
2007 Jul 31
1
RXML: <ruby:put expr="1+2"/>
...they
are
welcome.
Also in the implementation, I cannot evaluate the expressions in a
clean
binding because of the need to have a reference to the render_node
method.
It goes
like:
Kernel.eval(%Q[
#{node[''expr'']} do |
#{node[''args]}|
render_node(current_node, parent_node,
binding)
end
])
If somebody is interested and is willing to review my code, I would be
very
happy to hear their thought/
advice/...
The code is available at http://www.cosinux.org/~dam/rxml.tar.gz
Best
regards,
--
Damien MERENNE
<dam-xqxBqOIvj5dAfugRpC6u6w@public.gmane.org>
http://b...
2007 Nov 13
6
Groups
Hello,
Is it possible to group many nodes together? Suppose I have a large
number of machines that I all want to have the same config - rather
than specify them as individual nodes each inheriting the same config,
I''d like to say that a group inherits a config, and define the group
elsewhere.
Does this sort of construction already exist? Could it be cobbled
together from what we