summaryrefslogtreecommitdiffstats
path: root/ext/tk/sample
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/sample')
-rw-r--r--ext/tk/sample/tkextlib/blt/graph6.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tk/sample/tkextlib/blt/graph6.rb b/ext/tk/sample/tkextlib/blt/graph6.rb
index 48f7f9b36..f899b4411 100644
--- a/ext/tk/sample/tkextlib/blt/graph6.rb
+++ b/ext/tk/sample/tkextlib/blt/graph6.rb
@@ -70,9 +70,13 @@ class BLT_Graph_Demo
(1..39).each{|i| @graph.element_create("V#{i}", :x=>@x, :y=>@v[i])}
@top = Tk::BLT::Tile::Toplevel.new
+=begin
legend = Tk::BLT::Graph.new(@top, :widgetname=>'legend',
:without_creating=>true)
@graph.legend_configure(:position=>legend)
+=end
+ # legend = @graph.legend_window_create(@top, :widgetname=>'legend')
+ legend = @graph.legend_window_create(@top)
legend.pack(:fill=>:both, :expand=>true)
Tk::BLT::Table.add(@root, @graph, [0,0], :fill=>:both)