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/tframe.rb | |
parent | 47839448767f922a88956a7d4a30c77c36a53304 (diff) |
* 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/tframe.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/tile/tframe.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tframe.rb b/ext/tk/lib/tkextlib/tile/tframe.rb new file mode 100644 index 0000000000..b77049305f --- /dev/null +++ b/ext/tk/lib/tkextlib/tile/tframe.rb @@ -0,0 +1,25 @@ +# +# tframe widget +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' +require 'tkextlib/tile.rb' + +module Tk + module Tile + class TFrame < TkFrame + end + end +end + +class Tk::Tile::TFrame < TkFrame + include Tk::Tile::TileWidget + + if Tk::Tile::USE_TTK_NAMESPACE + TkCommandNames = ['::ttk::frame'.freeze].freeze + else + TkCommandNames = ['::tframe'.freeze].freeze + end + WidgetClassName = 'TFrame'.freeze + WidgetClassNames[WidgetClassName] = self +end |