diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-01 17:22:02 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-01 17:22:02 +0000 |
| commit | ff1240f5b646c88f4bd0113f8d50f99ecd637f93 (patch) | |
| tree | 457a3319cbdd105fb608f11eeb81968803b62552 /ext/tk/sample | |
| parent | 730726c4af6b403bbdbcabd0025eb8fa877c6a1d (diff) | |
| download | ruby-ff1240f5b646c88f4bd0113f8d50f99ecd637f93.tar.gz ruby-ff1240f5b646c88f4bd0113f8d50f99ecd637f93.tar.xz ruby-ff1240f5b646c88f4bd0113f8d50f99ecd637f93.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample')
| -rw-r--r-- | ext/tk/sample/tkextlib/blt/graph6.rb | 4 |
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) |
