summaryrefslogtreecommitdiff
path: root/ext/tk/sample/tkextlib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-01 17:22:02 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-01 17:22:02 +0000
commit4f8df7dcc42119a11c568a12b3e50f01553f4e4c (patch)
treea519d006d5e227821a80d455b191d30531325d4d /ext/tk/sample/tkextlib
parent011527f455eab7e7be7e3fd90d0f6d801eeccfde (diff)
* ext/tk/lib/tk.rb (TkWindow.initialize): accept 'without_creating'
option without 'widgetname' option to allow creating a widget object which is used as an argument of Tcl/Tk's widget allocation commands. * ext/tk/lib/tk/image.rb (TkImage.initialize): accept 'imagename' option to create a image object by the given name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkextlib')
-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 48f7f9b368..f899b44115 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)