diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 07:35:41 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 07:35:41 +0000 |
commit | 854f86e8ba65bed226ae3fbb8f385f68c51a6260 (patch) | |
tree | 16fe50605850246eac6978041e4470c3b678681c /ext/tk/lib/tkextlib/tile/tlabelframe.rb | |
parent | 47839448767f922a88956a7d4a30c77c36a53304 (diff) | |
download | ruby-854f86e8ba65bed226ae3fbb8f385f68c51a6260.tar.gz |
* ext/tk/lib/multi-tk.rb: freeze callback-entry objects
* ext/tk/lib/tkextlib/tile.rb: support tile-0.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tlabelframe.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/tile/tlabelframe.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tlabelframe.rb b/ext/tk/lib/tkextlib/tile/tlabelframe.rb new file mode 100644 index 0000000000..7685392934 --- /dev/null +++ b/ext/tk/lib/tkextlib/tile/tlabelframe.rb @@ -0,0 +1,25 @@ +# +# tlabelframe widget +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' +require 'tkextlib/tile.rb' + +module Tk + module Tile + class TLabelframe < Tk::Tile::TFrame + end + end +end + +class Tk::Tile::TLabelframe < Tk::Tile::TFrame + include Tk::Tile::TileWidget + + if Tk::Tile::USE_TTK_NAMESPACE + TkCommandNames = ['::ttk::labelframe'.freeze].freeze + else + TkCommandNames = ['::tlabelframe'.freeze].freeze + end + WidgetClassName = 'TLabelframe'.freeze + WidgetClassNames[WidgetClassName] = self +end |